diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-02-10 20:58:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-02-10 20:58:03 +0000 |
commit | 470fe1c1fd8fe025b54eb5a77ca87d064f039dcf (patch) | |
tree | be3937a545c8f525cfbac3f45df220dcf81715da | |
parent | 2ab6be1ed07f8c96e010d8098af3c6ff9db41d56 (diff) | |
download | brdo-470fe1c1fd8fe025b54eb5a77ca87d064f039dcf.tar.gz brdo-470fe1c1fd8fe025b54eb5a77ca87d064f039dcf.tar.bz2 |
- Patch #16960 by Goba: fixed content type options.
-rw-r--r-- | modules/node.module | 3 | ||||
-rw-r--r-- | modules/node/node.module | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index a17b5eb3a..cc5ccc910 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1748,7 +1748,8 @@ function node_update_index() { function node_nodeapi(&$node, $op, $arg = 0) { switch ($op) { case 'settings': - return form_checkboxes(t('Default options'), 'node_options_'. $node->type, variable_get('node_options_'. $node->type, array('status', 'promote')), array('status' => t('Published'), 'moderate' => t('In moderation queue'), 'promote' => t('Promoted to front page'), 'sticky' => t('Sticky at top of lists'), 'revision' => t('Create new revision')), t('Users with the <em>administer nodes</em> permission will be able to override these options.')); + // $node contains the type name in this operation + return form_checkboxes(t('Default options'), 'node_options_'. $node, variable_get('node_options_'. $node, array('status', 'promote')), array('status' => t('Published'), 'moderate' => t('In moderation queue'), 'promote' => t('Promoted to front page'), 'sticky' => t('Sticky at top of lists'), 'revision' => t('Create new revision')), t('Users with the <em>administer nodes</em> permission will be able to override these options.')); case 'fields': return array('nid', 'uid', 'type', 'title', 'teaser', 'body', 'revisions', 'status', 'promote', 'moderate', 'sticky', 'created', 'changed', 'format'); diff --git a/modules/node/node.module b/modules/node/node.module index a17b5eb3a..cc5ccc910 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1748,7 +1748,8 @@ function node_update_index() { function node_nodeapi(&$node, $op, $arg = 0) { switch ($op) { case 'settings': - return form_checkboxes(t('Default options'), 'node_options_'. $node->type, variable_get('node_options_'. $node->type, array('status', 'promote')), array('status' => t('Published'), 'moderate' => t('In moderation queue'), 'promote' => t('Promoted to front page'), 'sticky' => t('Sticky at top of lists'), 'revision' => t('Create new revision')), t('Users with the <em>administer nodes</em> permission will be able to override these options.')); + // $node contains the type name in this operation + return form_checkboxes(t('Default options'), 'node_options_'. $node, variable_get('node_options_'. $node, array('status', 'promote')), array('status' => t('Published'), 'moderate' => t('In moderation queue'), 'promote' => t('Promoted to front page'), 'sticky' => t('Sticky at top of lists'), 'revision' => t('Create new revision')), t('Users with the <em>administer nodes</em> permission will be able to override these options.')); case 'fields': return array('nid', 'uid', 'type', 'title', 'teaser', 'body', 'revisions', 'status', 'promote', 'moderate', 'sticky', 'created', 'changed', 'format'); |