2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -231,7 +231,8 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
node_save($node);
if($node->nid){
watchdog('content',t('%type: added %title using blog API.',array('%type'=>'<em>'.t($node->type).'</em>','%title'=>theme('placeholder',$node->title))),WATCHDOG_NOTICE,l(t('view'),"node/$node->nid"));
return$node->nid;
// blogger.newPost returns a string so we cast the nid to a string by putting it in double quotes:
return"$node->nid";
}
returnblogapi_error(t('Error storing post.'));
...
...
@@ -312,7 +313,7 @@ function blogapi_blogger_get_post($appkey, $postid, $username, $password) {
/**
* Blogging API callback. Removes the specified blog node.
@@ -341,6 +342,7 @@ function blogapi_blogger_get_recent_posts($appkey, $blogid, $username, $password
else{
$result=db_query_range("SELECT n.nid, n.title, n.created, u.name FROM {node} n, {users} u WHERE n.uid = u.uid AND n.type = '%s' AND n.uid = %d ORDER BY n.created DESC",$type,$user->uid,0,$number_of_posts);
@@ -231,7 +231,8 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
node_save($node);
if($node->nid){
watchdog('content',t('%type: added %title using blog API.',array('%type'=>'<em>'.t($node->type).'</em>','%title'=>theme('placeholder',$node->title))),WATCHDOG_NOTICE,l(t('view'),"node/$node->nid"));
return$node->nid;
// blogger.newPost returns a string so we cast the nid to a string by putting it in double quotes:
return"$node->nid";
}
returnblogapi_error(t('Error storing post.'));
...
...
@@ -312,7 +313,7 @@ function blogapi_blogger_get_post($appkey, $postid, $username, $password) {
/**
* Blogging API callback. Removes the specified blog node.
@@ -341,6 +342,7 @@ function blogapi_blogger_get_recent_posts($appkey, $blogid, $username, $password
else{
$result=db_query_range("SELECT n.nid, n.title, n.created, u.name FROM {node} n, {users} u WHERE n.uid = u.uid AND n.type = '%s' AND n.uid = %d ORDER BY n.created DESC",$type,$user->uid,0,$number_of_posts);