You are here

function answers_theme in Answers 7.3

Implements hook_theme().

File

./answers.module, line 141

Code

function answers_theme() {
  $theme = array();

  // This makes answers default to using the node templates provided by the
  // answers module.
  if (variable_get('answers_use_answers_theme_templates_p', TRUE)) {
    $path = drupal_get_path('module', 'answers');
    $theme['node__answer'] = array(
      'template' => 'node--answer',
      'path' => $path,
      'original hook' => 'node',
    );
  }
  return $theme;
}