You are here

function answers_theme_registry_alter in Answers 6.2

Same name and namespace in other branches
  1. 7.4 answers.module \answers_theme_registry_alter()
  2. 7.3 answers.module \answers_theme_registry_alter()

Implements hook_theme_registry_alter

Have drupal look in the module for content-type override templates

File

./answers.module, line 195

Code

function answers_theme_registry_alter(&$theme_registry) {
  $template = 'node';
  $originalpath = array_shift($theme_registry[$template]['theme paths']);
  $modulepath = drupal_get_path('module', 'answers');

  // Stick the original path with the module path back on top
  array_unshift($theme_registry[$template]['theme paths'], $originalpath, $modulepath);
}