function node_expire_menu in Node expire 6
Same name and namespace in other branches
- 8 node_expire.module \node_expire_menu()
- 5 node_expire.module \node_expire_menu()
- 7.2 node_expire.module \node_expire_menu()
- 7 node_expire.module \node_expire_menu()
Implementation of hook_menu().
File
- ./
node_expire.module, line 147
Code
function node_expire_menu() {
$items['admin/settings/node_expire'] = array(
'access arguments' => array(
'administer node_expire',
),
'description' => 'Configure Node Expire',
'file' => 'node_expire.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_expire_settings_form',
),
'title' => 'Node Expire',
);
$items['admin/settings/node_expire/settings'] = array(
'access arguments' => array(
'administer node_expire',
),
'file' => 'node_expire.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_expire_settings_form',
),
'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/node_expire/defaults'] = array(
'access arguments' => array(
'administer node_expire',
),
'file' => 'node_expire.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'node_expire_default_settings_form',
),
'title' => 'Defaults',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
// If pages are set to expire instantly, this page is of absolutely no use.
// Let's just hide it.
$items['admin/content/node/outdated'] = array(
'access arguments' => array(
'administer nodes',
),
'file' => 'node_expire.inc',
'page callback' => 'node_expire_outdated_nodes',
'type' => MENU_LOCAL_TASK,
'title' => 'Outdated Documents',
'weight' => 10,
);
return $items;
}