You are here

function theme_dna_permission in Devel 6

Same name and namespace in other branches
  1. 5 devel_node_access.module \theme_dna_permission()
  2. 7 devel_node_access.module \theme_dna_permission()

Indicate whether user has a permission or not.

1 theme call to theme_dna_permission()
devel_node_access_block in ./devel_node_access.module

File

./devel_node_access.module, line 810
This module gives developers feedback as to what their node_access table contains, and which nodes are protected or visible to the public.

Code

function theme_dna_permission($permission) {
  return '<span class="' . ($permission[0] ? 'ok' : 'error') . '" title="' . $permission[2] . '">' . $permission[1] . '</span>';
}