diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-15 21:26:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-15 21:26:12 +0000 |
commit | 5d340067287f7ce43088b101f987ad22d420bd8c (patch) | |
tree | 752ecdd42a574bed5a7ece1797b6d57ff27977d6 /modules/blogapi | |
parent | cd483d456a4269211a68b85068402ae85c084c9f (diff) | |
download | brdo-5d340067287f7ce43088b101f987ad22d420bd8c.tar.gz brdo-5d340067287f7ce43088b101f987ad22d420bd8c.tar.bz2 |
- Patch #78806 by James: moshe brought to my attention that the blogapi RSD was giving preferred treatment to bloggerapi - since we actually support much more feature rich apis (namely movabletype's) ... this patch gives the preferred treatment to MT. Also, it removes the unused "XML-RPC engine" setting - which wasn't being used anyway. And, since, any of the 3 API options will work regardless, this setting is extraneous.
Diffstat (limited to 'modules/blogapi')
-rw-r--r-- | modules/blogapi/blogapi.module | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index a13431aad..ceb8b4602 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -545,14 +545,6 @@ function blogapi_blogger_title(&$contents) { } function blogapi_admin_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('names'); $defaults = isset($node_types['blog']) ? array('blog' => 1) : array(); $form['blogapi_node_types'] = array( @@ -625,8 +617,8 @@ function blogapi_rsd() { <homePageLink>$base</homePageLink> <apis> <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" /> + <api name="Blogger" preferred="false" apiLink="$xmlrpc" blogID="$blogid" /> + <api name="MovableType" preferred="true" apiLink="$xmlrpc" blogID="$blogid" /> </apis> </service> </rsd> |