function userprotect_user_protection_defaults in User protect 7
Same name and namespace in other branches
- 5 userprotect.module \userprotect_user_protection_defaults()
- 6 userprotect.module \userprotect_user_protection_defaults()
Builds an array of the inital default protections.
Return value
array 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.admin.inc - Builds a form for the role protection settings.
- userprotect_protections_bypass in ./
userprotect.admin.inc - Helper function. Builds tables for protected users and admin bypass.
- userprotect_protections_bypass_submit in ./
userprotect.admin.inc - Processes the submitted user protection form.
File
- ./
userprotect.module, line 665 - Main module file for the userprotect module.
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_cancel' => 1,
'up_edit' => 0,
);
}