@@ -213,7 +213,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
}
else{
$edit['title']=blogapi_blogger_title($content);
$edit['body']=$content;
$edit['body'][0]['value']=$content;
}
if(!node_access('create',$edit['type'])){
...
...
@@ -274,12 +274,12 @@ function blogapi_blogger_edit_post($appkey, $postid, $username, $password, $cont
// Check for bloggerAPI vs. metaWeblogAPI.
if(is_array($content)){
$node->title=$content['title'];
$node->body=$content['description'];
$node->body[0]['value']=$content['description'];
_blogapi_mt_extra($node,$content);
}
else{
$node->title=blogapi_blogger_title($content);
$node->body=$content;
$node->body[0]['value']=$content;
}
module_invoke_all('node_blogapi_edit',$node);
...
...
@@ -379,7 +379,7 @@ function blogapi_blogger_get_recent_posts($appkey, $blogid, $username, $password
}
if($bodies){
$result=db_query_range("SELECT n.nid, n.title, r.body, r.format, n.comment, n.created, u.name FROM {node} n, {node_revision} r, {users} u WHERE n.uid = u.uid AND n.vid = r.vid AND n.type = :type AND n.uid = :uid ORDER BY n.created DESC",array(
$result=db_query_range("SELECT n.nid, n.title, n.comment, n.created, u.name FROM {node} n, {node_revision} r, {users} u WHERE n.uid = u.uid AND n.vid = r.vid AND n.type = :type AND n.uid = :uid ORDER BY n.created DESC",array(
':type'=>$blogid,
':uid'=>$user->uid
),0,$number_of_posts);
...
...
@@ -892,14 +892,14 @@ function _blogapi_mt_extra($node, $struct) {
// Merge the 3 body sections (description, mt_excerpt, mt_text_more) into one body.
@@ -549,8 +549,6 @@ function forum_form($node, $form_state) {
$form['shadow']=array('#type'=>'checkbox','#title'=>t('Leave shadow copy'),'#default_value'=>$shadow,'#description'=>t('If you move this topic, you can leave a link in the old forum to the new forum.'));