You are here

function userprotect_get_protection_display in User protect 7

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

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

Return value

array 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.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_protection_defaults in ./userprotect.admin.inc
Builds a form for the userprotect default settings.

File

./userprotect.module, line 700
Main module file for the userprotect module.

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_openid' => t('openid'),
    'up_cancel' => t('cancel'),
    'up_edit' => t('all account edits'),
  );
}