You are here

function _answers_check_type_theming_suggestion in Answers 7.4

Helper function for preprocess hooks.

3 calls to _answers_check_type_theming_suggestion()
answers_preprocess_comment in ./answers.module
Implements hook_preprocess_comment().
answers_preprocess_comment_wrapper in ./answers.module
Implements hook_preprocess_comment_wrapper().
answers_preprocess_node in ./answers.module
Implements hook_preprocess_node().

File

./answers.module, line 569
The Answers module.

Code

function _answers_check_type_theming_suggestion(&$vars, $theme_hook_suggestions) {
  if ($vars['node']->type == 'answers_answer' || $vars['node']->type == 'answers_question') {
    $vars['theme_hook_suggestions'][] = $theme_hook_suggestions;
  }
}