node_nodeapi
- Versions
- 4.6
node_nodeapi(&$node, $op, $arg = 0)
Implementation of hook_nodeapi().
Code
modules/node.module, line 1810
<?php
function node_nodeapi(&$node, $op, $arg = 0) {
switch ($op) {
case 'settings':
// $node contains the type name in this operation
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.'));
case 'fields':
return array('nid', 'uid', 'type', 'title', 'teaser', 'body', 'revisions', 'status', 'promote', 'moderate', 'sticky', 'created', 'changed', 'format');
}
}
?>Login or register to post comments 