function borealis_theme_registry_write in Borealis 7.2
Same name and namespace in other branches
- 7 borealis.module \borealis_theme_registry_write()
Helper function to add module directory to theme registry.
From http://www.metachunk.com/blog/adding-module-path-drupal-7-theme-registry
1 call to borealis_theme_registry_write()
- borealis_sb_theme_registry_alter in borealis_sb/
borealis_sb.module - Implements hook_theme_registry_alter()
File
- ./
borealis.module, line 9
Code
function borealis_theme_registry_write(&$theme_registry, $mod_path) {
$theme_registry_copy = $theme_registry;
// munge on a copy
_theme_process_registry($theme_registry_copy, 'phptemplate', 'theme_engine', 'pow', $mod_path);
$theme_registry += array_diff_key($theme_registry_copy, $theme_registry);
$hooks = array(
'node',
);
foreach ($hooks as $h) {
_borealis_insert_after_first_element($theme_registry[$h]['theme paths'], $mod_path);
}
}