function node_row_node_view_preprocess_node

You are here

8 node.views.inc node_row_node_view_preprocess_node(&$variables)

Implements hook_preprocess_node().

1 call to node_row_node_view_preprocess_node()
views_preprocess_node in core/modules/views/views.module
A theme preprocess function to automatically allow view-based node templates if called from a view.

File

core/modules/node/node.views.inc, line 716
Provide views data for node.module.

Code

function node_row_node_view_preprocess_node(&$variables) {
  $options = $variables['view']->rowPlugin->options;

  if (!$options['links']) {
    unset($variables['content']['links']);
  }
}