You are here

function userone_delete_access in User One 6

1 string reference to 'userone_delete_access'
userone_menu_alter in ./userone.module
Implementation of hook_menu_alter().

File

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

Code

function userone_delete_access($perm) {

  // No one, not even user one, should have delete permission for user one.
  if (arg(1) == 1) {
    return FALSE;
  }
  else {
    return user_access($perm);
  }
}