| 1 |
<?php |
<?php |
| 2 |
// $Id: devel_node_access.module,v 1.39 2009/11/07 21:40:00 salvis Exp $ |
// $Id: devel_node_access.module,v 1.40 2009/11/07 21:43:12 salvis Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* |
* |
| 490 |
} |
} |
| 491 |
else { |
else { |
| 492 |
$variables['!list'] = '<div style="margin-left: 2em">' . _devel_node_access_get_grant_list($nid, $checked_status, $checked_grants) . '</div>'; |
$variables['!list'] = '<div style="margin-left: 2em">' . _devel_node_access_get_grant_list($nid, $checked_status, $checked_grants) . '</div>'; |
| 493 |
$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'; |
| 494 |
|
$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"; |
| 495 |
$accounts[] = $user; |
$accounts[] = $user; |
| 496 |
} |
} |
| 497 |
if (arg(0) == 'node' && is_numeric(arg(1)) && !$block1_visible) { // only for single nodes |
if (arg(0) == 'node' && is_numeric(arg(1)) && !$block1_visible) { // only for single nodes |