From 5d340067287f7ce43088b101f987ad22d420bd8c Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Tue, 15 Aug 2006 21:26:12 +0000
Subject: [PATCH] - 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.

---
 modules/blogapi/blogapi.module | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index a13431aadcdf..ceb8b46028d3 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>
-- 
GitLab