function node_row_node_view_preprocess_node
Implements hook_preprocess_node().
1 call to node_row_node_view_preprocess_node()
- views_preprocess_node in ./
views.module - Preprocess a node.
File
-
modules/
node.views.inc, line 742
Code
function node_row_node_view_preprocess_node(&$vars) {
$node = $vars['node'];
$options = $vars['view']->style_plugin->row_plugin->options;
// Prevent the comment form from showing up if this is not a page display.
if ($vars['view_mode'] == 'full' && !$vars['view']->display_handler
->has_path()) {
$node->comment = FALSE;
}
if (!$options['links']) {
unset($vars['content']['links']);
}
if (module_exists('comment') && !empty($options['comments']) && user_access('access comments') && $node->comment) {
$vars['content']['comments'] = comment_node_page_additions($node);
}
}