Index: modules/blogapi/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v retrieving revision 1.99 diff -u -F^f -r1.99 blogapi.module --- modules/blogapi/blogapi.module 21 Nov 2006 20:14:17 -0000 1.99 +++ modules/blogapi/blogapi.module 5 Jan 2007 06:25:54 -0000 @@ -14,7 +14,7 @@ function blogapi_help($section) { case 'admin/help#blogapi': $output = '

'. t('The blog API module enables a post to be posted to a site via external GUI applications. Many users prefer to use external tools to improve their ability to read and post responses in a customized way. The blog api provides users the freedom to use the blogging tools they want but still have the blogging server of choice.') .'

'; $output .= '

'. t('When this module is enabled and configured you can use programs like Ecto to create and publish posts from your desktop. Blog API module supports several XML-RPC based blogging APIs such as the Blogger API, MetaWeblog API, and most of the Movable Type API. Any desktop blogging tools or other services (e.g. Flickr\'s "post to blog") that support these APIs should work with this site.', array('@external-http-ecto-kung-foo-tv' => 'http://ecto.kung-foo.tv/', '@-' => url('http://www.blogger.com/developers/api/1_docs/'), '@external-http-www-xmlrpc-com-metaWeblogApi' => 'http://www.xmlrpc.com/metaWeblogApi', '@external-http-www-movabletype-org-docs-mtmanual_programmatic-html' => 'http://www.movabletype.org/docs/mtmanual_programmatic.html', '@external-http-www-flickr-com' => 'http://www.flickr.com')) .'

'; - $output .= '

'. t('This module also allows site administrators to configure which content types can be posted via the external applications. So, for instance, users can post forum topics as well as blog posts. Where supported, the external applications will display each content type as a separate "blog".') .'

'; + $output .= '

'. t('This module also allows site administrators to configure which content types can be posted via the external applications. So, for instance, users can post forum topics as well as blog posts. Where supported, the external applications will display each content type as a separate "blog".') .'

'; $output .= '

'. t('For more information please read the configuration and customization handbook BlogApi page.', array('@blogapi' => 'http://drupal.org/handbook/modules/blogapi/')) .'

'; return $output; } @@ -138,7 +138,7 @@ function blogapi_blogger_get_users_blogs $types = _blogapi_get_node_types(); $structs = array(); foreach ($types as $type) { - $structs[] = array('url' => url('blog/' . $user->uid, NULL, NULL, TRUE), 'blogid' => $type, 'blogName' => $user->name . ": " . $type); + $structs[] = array('url' => url('blog/'. $user->uid, NULL, NULL, TRUE), 'blogid' => $type, 'blogName' => $user->name .": ". $type); } return $structs; } @@ -161,7 +161,7 @@ function blogapi_blogger_get_user_info($ 'firstname' => $name[0], 'nickname' => $user->name, 'email' => $user->mail, - 'url' => url('blog/' . $user->uid, NULL, NULL, TRUE)); + 'url' => url('blog/'. $user->uid, NULL, NULL, TRUE)); } else { return blogapi_error($user); @@ -383,7 +383,7 @@ function blogapi_metaweblog_get_category foreach ($terms as $term) { $term_name = $term->name; foreach (module_invoke('taxonomy', 'get_parents', $term->tid, 'tid') as $parent) { - $term_name = $parent->name . '/' . $term_name; + $term_name = $parent->name .'/'. $term_name; } $categories[] = array('categoryName' => $term_name, 'categoryId' => $term->tid); } @@ -421,7 +421,7 @@ function blogapi_mt_get_post_categories( foreach ($terms as $term) { $term_name = $term->name; foreach (module_invoke('taxonomy', 'get_parents', $term->tid, 'tid') as $parent) { - $term_name = $parent->name . '/' . $term_name; + $term_name = $parent->name .'/'. $term_name; } $categories[] = array('categoryName' => $term_name, 'categoryId' => $term->tid, 'isPrimary' => TRUE); } @@ -596,7 +596,7 @@ function blogapi_blogapi() { function blogapi_rsd() { global $base_url; - $xmlrpc = $base_url .'/'. 'xmlrpc.php'; + $xmlrpc = $base_url .'/xmlrpc.php'; $base = url('', NULL, NULL, TRUE); $blogid = 1; # until we figure out how to handle multiple bloggers @@ -645,10 +645,10 @@ function _blogapi_mt_extra(&$node, $stru // merge the 3 body sections (description, mt_excerpt, mt_text_more) into // one body if ($struct['mt_excerpt']) { - $node->body = $struct['mt_excerpt'] .''.$node->body; + $node->body = $struct['mt_excerpt'] .''. $node->body; } if ($struct['mt_text_more']) { - $node->body = $node->body . '' . $struct['mt_text_more']; + $node->body = $node->body .''. $struct['mt_text_more']; } // mt_convert_breaks @@ -672,8 +672,8 @@ function _blogapi_get_post($node, $bodie 'dateCreated' => xmlrpc_date($node->created), 'title' => $node->title, 'postid' => $node->nid, - 'link' => url('node/'.$node->nid, NULL, NULL, TRUE), - 'permaLink' => url('node/'.$node->nid, NULL, NULL, TRUE), + 'link' => url('node/'. $node->nid, NULL, NULL, TRUE), + 'permaLink' => url('node/'. $node->nid, NULL, NULL, TRUE), ); if ($bodies) { if ($node->comment == 1) {