You are here

function _acl_get_explanation in ACL 6

Same name and namespace in other branches
  1. 8 acl.module \_acl_get_explanation()
  2. 7 acl.module \_acl_get_explanation()

Asks the client for its interpretation of the given grant record.

1 call to _acl_get_explanation()
acl_node_access_explain in ./acl.module
Implementation of hook_node_access_explain().

File

./acl.module, line 271
An API module providing by-user access control lists.

Code

function _acl_get_explanation($text, $acl_id, $module, $name, $number, $users = NULL) {
  $hook = $module . '_acl_explain';
  if (function_exists($hook)) {
    return '<span title="' . $hook($acl_id, $name, $number, $users) . '">' . $text . '</span>';
  }
  return $text;
}