You are here

function mcd_init in Maintenance Countdown 6

Same name and namespace in other branches
  1. 7 mcd.module \mcd_init()

Implementation of hook_init().

Add module UI css for settings page only

File

./mcd.module, line 14
This module provides the maintenance page with nice countdown timer. So now you may set time for your maintenance work and your visitors will see when time is up.

Code

function mcd_init() {
  if (arg(0) == 'admin' && arg(2) == 'site-maintenance') {
    drupal_add_css(drupal_get_path('module', 'mcd') . '/mcd.css');
  }
}