diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-10-07 06:11:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-10-07 06:11:12 +0000 |
commit | 7e1527ee61bc10b3765b95b9af8faaa2254da5a8 (patch) | |
tree | 2225c7f571b4a3f635564f8281406a12b2a271a7 /modules/blogapi.module | |
parent | 7b5b460534e5c54b07d28467c2aa2fc670c714e4 (diff) | |
download | brdo-7e1527ee61bc10b3765b95b9af8faaa2254da5a8.tar.gz brdo-7e1527ee61bc10b3765b95b9af8faaa2254da5a8.tar.bz2 |
- Patch #29465: new form API by Adrian et al.
TODO:
+ The contact.module was broken; a new patch for contact.module is needed.
+ Documentation is needed.
+ The most important modules need to be updated ASAP.
Diffstat (limited to 'modules/blogapi.module')
-rw-r--r-- | modules/blogapi.module | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module index e983177be..a85e1d485 100644 --- a/modules/blogapi.module +++ b/modules/blogapi.module @@ -548,10 +548,21 @@ function blogapi_blogger_title(&$contents) { } function blogapi_settings() { + $form['blogapi_engine'] = array( + type => 'select', title => t('XML-RPC Engine'), default_value => variable_get('blogapi_engine', 0), + options => array(0 => 'Blogger', 1 => 'MetaWeblog', 2 => 'Movabletype'), + description => t('RSD or Really-Simple-Discovery is a mechanism which allows external blogger tools to discover the APIs they can use to interact with Drupal. Here you can set the preferred method for blogger tools to interact with your site. The common XML-RPC engines are Blogger, MetaWeblog and Movabletype. If you are not sure which is the correct setting, choose Blogger.') + ); + $node_types = node_get_types(); $defaults = isset($node_types['blog']) ? array('blog') : array(); - $output .= form_checkboxes(t('Blog types'), "blogapi_node_types", variable_get('blogapi_node_types', $defaults), $node_types, t('Select the content types for which you wish to enable posting via blogapi. Each type will appear as a different "blog" in the client application (if supported).'), 0, 1); - return $output; + $form['blogapi_node_types'] = array( + type => 'checkboxes', title => t('Blog types'), required => TRUE, + default_value => variable_get('blogapi_node_types', $defaults), options => $node_types, + description => t('Select the content types for which you wish to enable posting via blogapi. Each type will appear as a different "blog" in the client application (if supported).') + ); + + return $form; } function blogapi_menu($may_cache) { |