You are here

function override_node_options_menu in Override Node Options 6

Same name and namespace in other branches
  1. 5 override_node_options.module \override_node_options_menu()
  2. 7 override_node_options.module \override_node_options_menu()

Implements hook_menu().

File

./override_node_options.module, line 34
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() {
  $items['admin/settings/override_node_options'] = array(
    'title' => 'Override node options',
    'description' => 'Allow non-admins to override the default publishing options for nodes they can edit',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'override_node_options_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'override_node_options.admin.inc',
  );
  return $items;
}