function user_delete_menu in User Delete 6.2
Same name and namespace in other branches
- 5 user_delete.module \user_delete_menu()
- 6 user_delete.module \user_delete_menu()
Implementation of hook_menu().
File
- ./
user_delete.module, line 34 - Provide account cancellation methods and API to provide the same functionalty as Drupal 7 for cancelling accounts.
Code
function user_delete_menu() {
$items['admin/user/user_delete'] = array(
'title' => 'User delete',
'description' => "Configure the user delete methods.",
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_delete_settings',
),
'access arguments' => array(
'administer users',
),
'file' => 'user_delete.admin.inc',
);
$items['user/%user/delete/confirm/%/%'] = array(
'title' => 'Confirm account cancellation',
'page callback' => 'user_delete_cancel_confirm',
'page arguments' => array(
1,
4,
5,
),
'access callback' => 'user_delete_access',
'access arguments' => array(
1,
),
);
return $items;
}