function answers_theme_registry_alter in Answers 6.2
Same name and namespace in other branches
- 7.4 answers.module \answers_theme_registry_alter()
- 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);
}