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

Indicate whether user has a permission or not.

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>';
}