You are here

function subuser_menu_alter in Subuser 8

Same name and namespace in other branches
  1. 6 subuser.module \subuser_menu_alter()
  2. 7.2 subuser.module \subuser_menu_alter()

Implements hook_menu_alter().

File

./subuser.module, line 49
Provides primary Drupal hook implementations.

Code

function subuser_menu_alter(&$items) {
  $items['user/%user']['access callback'] = 'subuser_access_view_callback';
  $items['user/%user/cancel']['access callback'] = 'subuser_access_delete_callback';
  $items['user/%user/cancel/confirm/%/%']['access callback'] = 'subuser_access_delete_callback';
  $items['user/%user/edit']['access callback'] = 'subuser_access_edit_callback';
}