Commit 5d340067 authored by Dries's avatar Dries
Browse files

- Patch #78806 by James: moshe brought to my attention that the blogapi RSD...

- 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.
parent cd483d45
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment