function auto_expire_menu in Auto Expire 7
Same name and namespace in other branches
- 5 auto_expire.module \auto_expire_menu()
Implements hook_menu().
File
- ./
auto_expire.module, line 51
Code
function auto_expire_menu() {
//$items = array();
$items['admin/config/content/auto_expire'] = array(
'title' => 'Auto Expire',
'description' => 'Set node types that auto expire.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'_auto_expire_admin_settings',
),
'access arguments' => array(
ADMINISTER_AUTO_EXPIRE,
),
'type' => MENU_NORMAL_ITEM,
);
$items['node/%/expiry'] = array(
'title' => 'Extend',
'description' => 'See and extend the expiry period.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'_auto_expire_expiry',
1,
),
'access callback' => '_auto_expire_can_user_extend',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
return $items;
}