You are here

function userprotect_user_protection_defaults in User protect 6

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

Builds an array of the inital default protections.

Return value

The default protections array.

7 calls to userprotect_user_protection_defaults()
userprotect_add_user in ./userprotect.module
Adds a user to the protections table.
userprotect_administrator_bypass_defaults in ./userprotect.module
Builds an array of the inital default bypass settings for user admins.
userprotect_protected_roles in ./userprotect.module
Builds a form for the role protection settings.
userprotect_protections_bypass in ./userprotect.module
Helper funtion. Builds tables for protected users and admin bypass.
userprotect_protections_bypass_submit in ./userprotect.module
Processes the submitted user protection form.

... See full list

File

./userprotect.module, line 941

Code

function userprotect_user_protection_defaults() {
  return array(
    'up_name' => 0,
    'up_mail' => 0,
    'up_pass' => 0,
    'up_status' => 1,
    'up_roles' => 0,
    'up_openid' => 0,
    'up_delete' => 1,
    'up_edit' => 0,
  );
}