function node_limit_menu in Node Limit 7
Same name and namespace in other branches
- 8 old/node_limit.module \node_limit_menu()
- 6 node_limit.module \node_limit_menu()
Implements hook_menu().
File
- ./
node_limit.module, line 49
Code
function node_limit_menu() {
$items = array();
$items['admin/structure/node_limit'] = array(
'title' => 'Node Limits',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_limit_list_limits',
),
'access arguments' => array(
NODE_LIMIT_PERM_ADMIN,
),
);
$items['admin/structure/node_limit/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'access arguments' => array(
NODE_LIMIT_PERM_ADMIN,
),
'weight' => -10,
);
$items['admin/structure/node_limit/add'] = array(
'title' => 'Add Node Limit',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_limit_limit_form',
),
'access arguments' => array(
NODE_LIMIT_PERM_ADMIN,
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/node_limit/%node_limit'] = array(
'title' => 'Edit Node Limit',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_limit_limit_form',
3,
),
'access arguments' => array(
NODE_LIMIT_PERM_ADMIN,
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/structure/node_limit/%node_limit/delete'] = array(
'title' => 'Delete Node Limit',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_limit_delete_form',
3,
),
'access arguments' => array(
NODE_LIMIT_PERM_ADMIN,
),
'type' => MENU_CALLBACK,
);
$items['admin/structure/node_limit/%node_limit/clone'] = array(
'title' => 'Clone Node Limit',
'page callback' => 'node_limit_clone_limit',
'page arguments' => array(
3,
),
'access arguments' => array(
NODE_LIMIT_PERM_ADMIN,
),
'type' => MENU_CALLBACK,
);
$items['admin/structure/node_limit/settings'] = array(
'title' => 'Node Limits settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_limit_settings_form',
),
'access arguments' => array(
NODE_LIMIT_PERM_ADMIN,
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}