From 75fe6b6c0ae85d2b53cb803d5b028b050fd6d454 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 11 Oct 2005 19:44:35 +0000 Subject: - Patch #33752 by chx, adrian, et al: another batch of form API changes/fixes. --- modules/blogapi/blogapi.module | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/blogapi/blogapi.module') diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index ef2fc080b..b23de7324 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -549,17 +549,17 @@ 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.') + '#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(); $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).') + '#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; -- cgit v1.2.3