@@ -203,7 +202,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
$edit['format']=FILTER_FORMAT_DEFAULT;
$edit['status']=$publish;
// check for bloggerAPI vs. metaWeblogAPI
// Check for bloggerAPI vs. metaWeblogAPI.
if(is_array($content)){
$edit['title']=$content['title'];
$edit['body']=$content['description'];
...
...
@@ -233,7 +232,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
node_save($node);
if($node->nid){
watchdog('content','@type: added %title using blog API.',array('@type'=>$node->type,'%title'=>$node->title),WATCHDOG_NOTICE,l(t('view'),"node/$node->nid"));
// blogger.newPost returns a string so we cast the nid to a string by putting it in double quotes:
// blogger.newPost returns a string so we cast the nid to a string by putting it in double quotes.
return"$node->nid";
}
...
...
@@ -244,7 +243,6 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
* Blogging API callback. Modifies the specified blog node.
@@ -714,6 +725,7 @@ function _blogapi_validate_blogid($blogid) {
if(in_array($blogid,$types,TRUE)){
returnTRUE;
}
returnblogapi_error(t("Blog API module is not configured to support the %type content type, or you don't have sufficient permissions to post this type of content.",array('%type'=>$blogid)));