function user_delete_menu_alter in User Delete 6.2
Same name and namespace in other branches
- 6 user_delete.module \user_delete_menu_alter()
Implementation of hook_menu_alter().
Take control of user/%/delete form and set the new access callback.
File
- ./
user_delete.module, line 67 - Provide account cancellation methods and API to provide the same functionalty as Drupal 7 for cancelling accounts.
Code
function user_delete_menu_alter(&$callbacks) {
$callbacks['user/%user/delete']['access callback'] = 'user_delete_access';
$callbacks['user/%user/delete']['access arguments'] = array(
1,
);
$callbacks['user/%user/delete']['type'] = MENU_CALLBACK;
}