function theme_user_permission_description

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 user.admin.inc theme_user_permission_description($variables)
cle7 user.admin.inc theme_user_permission_description($variables)
elmsmedia7 user.admin.inc theme_user_permission_description($variables)
icor7 user.admin.inc theme_user_permission_description($variables)
meedjum_blog7 user.admin.inc theme_user_permission_description($variables)
mooc7 user.admin.inc theme_user_permission_description($variables)

Returns HTML for an individual permission description.

Parameters

$variables: An associative array containing:

  • permission_item: An associative array representing the permission whose description is being themed. Useful keys include:

    • description: The text of the permission description.
    • warning: A security-related warning message about the permission (if there is one).
  • hide: A boolean indicating whether or not the permission description was requested to be hidden rather than shown.

Related topics

2 theme calls to theme_user_permission_description()
og_ui_admin_permissions in sites/all/modules/ulmus/og/og_ui/og_ui.admin.inc
Menu callback: administer permissions.
user_admin_permissions in modules/user/user.admin.inc
Menu callback: administer permissions.
3 string references to the theme hook from theme_user_permission_description()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

og_ui_admin_permissions in sites/all/modules/ulmus/og/og_ui/og_ui.admin.inc
Menu callback: administer permissions.
user_admin_permissions in modules/user/user.admin.inc
Menu callback: administer permissions.
user_theme in modules/user/user.module
Implements hook_theme().

File

modules/user/user.admin.inc, line 822
Admin page callback file for the user module.

Code

function theme_user_permission_description($variables) {
  if (!$variables['hide']) {
    $description = array();
    $permission_item = $variables['permission_item'];
    if (!empty($permission_item['description'])) {
      $description[] = $permission_item['description'];
    }
    if (!empty($permission_item['warning'])) {
      $description[] = '<em class="permission-warning">' . $permission_item['warning'] . '</em>';
    }
    if (!empty($description)) {
      return implode(' ', $description);
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.