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);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.