You are here

function userone_menu_alter in User One 7

Same name and namespace in other branches
  1. 6 userone.module \userone_menu_alter()

Implements hook_menu_alter(). To prevent users from editing user 1 account.

File

./userone.module, line 36
User One module.

Code

function userone_menu_alter(&$items) {
  $items['user/%user/edit']['access callback'] = 'userone_edit_access';
}