You are here

function answers_theme_preprocess_node in Answers 7.4

Implements hook_preprocess_node().

File

answers_theme/answers_theme.module, line 94
The Answers_Theme module.

Code

function answers_theme_preprocess_node(&$vars) {
  $type = $vars['node']->type;
  if ($type == 'answers_question') {
    $vars['theme_hook_suggestions'][] = 'node__answers_question';
  }
  elseif ($type == 'answers_answer') {
    $vars['theme_hook_suggestions'][] = 'node__answers_answer';
  }
}