function mcd_theme_registry_alter in Maintenance Countdown 6
Same name and namespace in other branches
- 7 mcd.countdown.inc \mcd_theme_registry_alter()
Implementation of hook_theme_registry_alter().
Make drupal to use maintenance-countdown-page.tpl.php in maintenance mode if timer is set
Parameters
$theme_registry: The entire cache of theme registry information, post-processing.
File
- ./
mcd.countdown.inc, line 15 - This file will be processed if time is set
Code
function mcd_theme_registry_alter(&$theme_registry) {
$path = drupal_get_path('module', 'mcd');
$theme_registry['maintenance_page']['template'] = 'maintenance-countdown-page';
$theme_registry['maintenance_page']['path'] = $path;
}