Commit 31d2520e authored by Steven Wittens's avatar Steven Wittens
Browse files

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

parent 2e2e7181
......@@ -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];
......
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment