function override_node_options_menu in Override Node Options 5
Same name and namespace in other branches
- 6 override_node_options.module \override_node_options_menu()
- 7 override_node_options.module \override_node_options_menu()
Implements hook_menu().
File
- ./
override_node_options.module, line 29 - Allow users to override the default publishing options for nodes they can edit without giving them the 'administer nodes' permission.
Code
function override_node_options_menu($may_cache) {
$items[] = array(
'path' => 'admin/settings/override_node_options',
'title' => t('Override node options'),
'description' => t('Allow non-admins to override the default publishing options for nodes they can edit'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'override_node_options_settings_form',
),
'access' => user_access('access administration pages'),
);
return $items;
}