summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsalvis2009-11-07 22:33:21 (GMT)
committer salvis2009-11-07 22:33:21 (GMT)
commit2b28ebc9498851f8ab76139a19b1b7e7c32a044b (patch)
tree32be642b4e8355bef9e2b2f9fd6013dddbb6c648
parent021f83e1aec7c6d62ae6de67576ee2838e250590 (diff)
Be specific about showing only the 'view' grants returned from hook_node_grants().
-rw-r--r--devel_node_access.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/devel_node_access.module b/devel_node_access.module
index bd21426..bfd0e79 100644
--- a/devel_node_access.module
+++ b/devel_node_access.module
@@ -490,7 +490,8 @@ function devel_node_access_block_view($delta) {
}
else {
$variables['!list'] = '<div style="margin-left: 2em">' . _devel_node_access_get_grant_list($nid, $checked_status, $checked_grants) . '</div>';
- $output .= "\n<div style='text-align: left' title='" . t('These are the grants returned by hook_node_grants() for this user.') . "'>" . t('!username (user %uid) can use these grants (if they are present above): !list', $variables) . "</div>\n";
+ $variables['%access'] = 'view';
+ $output .= "\n<div style='text-align: left' title='" . t('These are the grants returned by hook_node_grants() for this user.') . "'>" . t('!username (user %uid) can use these grants for %access access (if they are present above): !list', $variables) . "</div>\n";
$accounts[] = $user;
}
if (arg(0) == 'node' && is_numeric(arg(1)) && !$block1_visible) { // only for single nodes