Full ELMS Learning Network documentation
function node_row_node_view_preprocess_node
cis7 node.views.inc | node_row_node_view_preprocess_node(&$vars) |
cle7 node.views.inc | node_row_node_view_preprocess_node(&$vars) |
elmsmedia7 node.views.inc | node_row_node_view_preprocess_node(&$vars) |
icor7 node.views.inc | node_row_node_view_preprocess_node(&$vars) |
meedjum_blog7 node.views.inc | node_row_node_view_preprocess_node(&$vars) |
mooc7 node.views.inc | node_row_node_view_preprocess_node(&$vars) |
Implements hook_preprocess_node().
1 call to node_row_node_view_preprocess_node()
- views_preprocess_node in sites/
all/ modules/ ulmus/ views/ views.module - A theme preprocess function to automatically allow view-based node templates if called from a view.
File
- sites/
all/ modules/ ulmus/ views/ modules/ node.views.inc, line 705 - Provide views data and handlers for node.module.
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 (!empty($options['comments']) && user_access('access comments') && $node->comment) {
$vars['content']['comments'] = comment_node_page_additions($node);
}
}