You are here

function userprotect_administrator_bypass_defaults in User protect 5

Same name and namespace in other branches
  1. 6 userprotect.module \userprotect_administrator_bypass_defaults()
  2. 7 userprotect.module \userprotect_administrator_bypass_defaults()

Builds an array of the inital default bypass settings for user admins.

Return value

The default bypass array.

2 calls to userprotect_administrator_bypass_defaults()
userprotect_check_bypass in ./userprotect.module
Checks to see if the current user can bypass a protection.
userprotect_protection_defaults in ./userprotect.module
Builds a form for the userprotect default settings.
3 string references to 'userprotect_administrator_bypass_defaults'
userprotect_check_bypass in ./userprotect.module
Checks to see if the current user can bypass a protection.
userprotect_protection_defaults in ./userprotect.module
Builds a form for the userprotect default settings.
userprotect_uninstall in ./userprotect.install
Implementation of hook_uninstall().

File

./userprotect.module, line 919

Code

function userprotect_administrator_bypass_defaults() {
  $defaults = array();
  $protections = userprotect_user_protection_defaults();
  foreach ($protections as $protection => $value) {
    $defaults[$protection] = $protection;
  }
  return $defaults;
}