- #20868: Blogapi was still using the old workflow variables.

4.7.x
Steven Wittens 2005-04-23 06:38:27 +00:00
parent 2e2e718197
commit 31d2520e8d
2 changed files with 12 additions and 8 deletions

View File

@ -117,12 +117,14 @@ function blogapi_new_post($req_params) {
$edit = array();
$edit['type'] = _blogapi_blogid($params[0]);
// get the node type defaults
$node_type_default = variable_get('node_options_'. $edit['type']);
$edit['uid'] = $user->uid;
$edit['name'] = $user->name;
$edit['promote'] = variable_get('node_promote_blog', 1);
$edit['comment'] = variable_get('node_comment_blog', 2);
$edit['moderate'] = variable_get('node_moderate_blog', 0);
$edit['revision'] = variable_get('node_revision_blog', 0);
$edit['promote'] = $node_type_default['promote'];
$edit['comment'] = variable_get('comment_'. $edit['type'], 2);
$edit['moderate'] = $node_type_default['moderate'];
$edit['revision'] = $node_type_default['revision'];
$edit['format'] = FILTER_FORMAT_DEFAULT;
$edit['status'] = $params[4];

View File

@ -117,12 +117,14 @@ function blogapi_new_post($req_params) {
$edit = array();
$edit['type'] = _blogapi_blogid($params[0]);
// get the node type defaults
$node_type_default = variable_get('node_options_'. $edit['type']);
$edit['uid'] = $user->uid;
$edit['name'] = $user->name;
$edit['promote'] = variable_get('node_promote_blog', 1);
$edit['comment'] = variable_get('node_comment_blog', 2);
$edit['moderate'] = variable_get('node_moderate_blog', 0);
$edit['revision'] = variable_get('node_revision_blog', 0);
$edit['promote'] = $node_type_default['promote'];
$edit['comment'] = variable_get('comment_'. $edit['type'], 2);
$edit['moderate'] = $node_type_default['moderate'];
$edit['revision'] = $node_type_default['revision'];
$edit['format'] = FILTER_FORMAT_DEFAULT;
$edit['status'] = $params[4];