function betterlogin_theme_registry_alter in Better Login 7
Implements hook_theme_registry_alter().
Original code from http://drupal.stackexchange.com/a/26796/7542.
File
- ./
betterlogin.module, line 130 - Make the login screens better :).
Code
function betterlogin_theme_registry_alter(&$theme_registry) {
$mod_path = drupal_get_path('module', 'betterlogin');
$theme_registry_copy = $theme_registry;
_theme_process_registry($theme_registry_copy, 'phptemplate', 'theme_engine', '', $mod_path);
$theme_registry += array_diff_key($theme_registry_copy, $theme_registry);
$hooks = array(
'page',
);
foreach ($hooks as $h) {
if (!isset($theme_registry[$h]['theme paths'])) {
$theme_registry[$h]['theme paths'] = array();
}
_betterlogin_insert_after_first_element($theme_registry[$h]['theme paths'], $mod_path);
}
}