You are here

function advuser_admin_access in Advanced User 6.3

Same name and namespace in other branches
  1. 6.2 advuser.module \advuser_admin_access()

Access callback for menu items.

1 string reference to 'advuser_admin_access'
advuser_menu in ./advuser.module
Implementation of hook_menu().

File

./advuser.module, line 181
Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.

Code

function advuser_admin_access() {
  $accesses = func_get_args();
  if (empty($accesses)) {
    $accesses = array(
      'access advuser',
    );
  }
  foreach ($accesses as $access) {
    $ret = user_access($access);
    if (!$ret) {
      break;
    }
  }
  return $ret;
}