You are here

function userprotect_get_protection_display in User protect 5

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

Builds an array of all protections and their human-readable text string.

Return value

The constructed array.

4 calls to userprotect_get_protection_display()
userprotect_display_protections in ./userprotect.module
Builds a displayable text string of the protections currently in effect for the specified user.
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_protection_defaults in ./userprotect.module
Builds a form for the userprotect default settings.

File

./userprotect.module, line 935

Code

function userprotect_get_protection_display() {
  return array(
    'up_name' => t('username'),
    'up_mail' => t('e-mail'),
    'up_pass' => t('password'),
    'up_status' => t('status'),
    'up_roles' => t('roles'),
    'up_delete' => t('deletion'),
    'up_edit' => t('all account edits'),
  );
}