You are here

function answers_core_node_links_alter in Answers 1.0.x

Same name and namespace in other branches
  1. 2.0.x modules/core/answers_core.module \answers_core_node_links_alter()

Implements hook_node_links_alter().

File

modules/core/answers_core.module, line 111

Code

function answers_core_node_links_alter(array &$links, NodeInterface $node, array &$context) {
  $is_question = $node->type->target_id == 'answers_question';
  if ($is_question && array_key_exists('statistics', $links)) {
    unset($links['statistics']);
  }
}