function theme_dna_permission in Devel 7
Same name and namespace in other branches
- 5 devel_node_access.module \theme_dna_permission()
- 6 devel_node_access.module \theme_dna_permission()
Returns HTML to indicate if a user has a permission.
Parameters
array $variables: An associative array containing:
- permission: An indexed array containing:
- 0: A value indicating if the user has permission.
- 1: The text of the message to display.
- 2: The title to display containing additional information.
2 theme calls to theme_dna_permission()
- devel_node_access_block_view in ./
devel_node_access.module - Implements hook_block_view().
- devel_node_access_user_ajax in ./
devel_node_access.module - Page callback for node access by user block ajax.
File
- ./
devel_node_access.module, line 1462 - Functions for debugging node access permissions.
Code
function theme_dna_permission($variables) {
$permission =& $variables['permission'];
return '<span class="' . ($permission[0] ? 'ok' : 'error') . '" title="' . $permission[2] . '">' . $permission[1] . '</span>';
}