diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-09-19 18:41:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-09-19 18:41:30 +0000 |
commit | 56903f504ae0fe88562c2fceb63be8503da5dd87 (patch) | |
tree | 7209faaacfe322ac8e78a5dc572f4e54c7988a2d /modules/blogapi/blogapi.module | |
parent | 06af3e60e5e7897bf033a4d58556199f0fad396a (diff) | |
download | brdo-56903f504ae0fe88562c2fceb63be8503da5dd87.tar.gz brdo-56903f504ae0fe88562c2fceb63be8503da5dd87.tar.bz2 |
- Patch #31650 by Robert: removed redundant XML-RPC blogapi setting.
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r-- | modules/blogapi/blogapi.module | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 81844de87..e983177be 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -548,7 +548,6 @@ function blogapi_blogger_title(&$contents) { } function blogapi_settings() { - $output = form_select(t('XML-RPC Engine'), 'blogapi_engine', variable_get('blogapi_engine', 0), array(0 => 'Blogger', 1 => 'MetaWeblog', 2 => 'Movabletype'), 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); @@ -590,15 +589,6 @@ function blogapi_rsd() { $base = url('', NULL, NULL, TRUE); $blogid = 1; # until we figure out how to handle multiple bloggers - $metaweblog = 'false'; $blogger = 'false'; $mt = 'false'; - if (variable_get('blogapi_engine', 0) == 0) { - $blogger = 'true'; - } else if (variable_get('blogapi_engine', 0) == 1) { - $metaweblog = 'true'; - } else if (variable_get('blogapi_engine', 0) == 2) { - $mt = 'true'; - } - print <<<__RSD__ <?xml version="1.0"?> <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> @@ -607,9 +597,9 @@ function blogapi_rsd() { <engineLink>http://www.drupal.org/</engineLink> <homePageLink>$base</homePageLink> <apis> - <api name="MetaWeblog" preferred="$metaweblog" apiLink="$xmlrpc" blogID="$blogid" /> - <api name="Blogger" preferred="$blogger" apiLink="$xmlrpc" blogID="$blogid" /> - <api name="Movabletype" preferred="$mt" apiLink="$xmlrpc" blogID="$blogid" /> + <api name="MetaWeblog" preferred="false" apiLink="$xmlrpc" blogID="$blogid" /> + <api name="Blogger" preferred="true" apiLink="$xmlrpc" blogID="$blogid" /> + <api name="Movabletype" preferred="false" apiLink="$xmlrpc" blogID="$blogid" /> </apis> </service> </rsd> |