function theme_private_node_link in Private 7
Same name and namespace in other branches
- 5 private.module \theme_private_node_link()
- 6 private.module \theme_private_node_link()
- 7.2 private.module \theme_private_node_link()
Custom theme function
See also
1 theme call to theme_private_node_link()
- private_node_view in ./
private.module - Implements hook_node_view().
File
- ./
private.module, line 285 - A tremendously simple access control module -- it allows users to mark individual nodes as private; users with 'access private content' perms can read these nodes, while others cannot.
Code
function theme_private_node_link() {
$vars = array(
'path' => drupal_get_path('module', 'private') . '/icon_key.gif',
'width' => '16',
'height' => '16',
'alt' => t('Private'),
'title' => t('This content is private.'),
);
return theme('image', $vars);
}