8.5.x bartik.theme bartik_preprocess_maintenance_page(&$variables)
8.0.x bartik.theme bartik_preprocess_maintenance_page(&$variables)
8.1.x bartik.theme bartik_preprocess_maintenance_page(&$variables)
8.2.x bartik.theme bartik_preprocess_maintenance_page(&$variables)
8.3.x bartik.theme bartik_preprocess_maintenance_page(&$variables)
8.4.x bartik.theme bartik_preprocess_maintenance_page(&$variables)
8.6.x bartik.theme bartik_preprocess_maintenance_page(&$variables)
7.x template.php bartik_preprocess_maintenance_page(&$variables)

Implements hook_preprocess_maintenance_page().

File

themes/bartik/template.php, line 79

Code

function bartik_preprocess_maintenance_page(&$variables) {

  // By default, site_name is set to Drupal if no db connection is available
  // or during site installation. Setting site_name to an empty string makes
  // the site and update pages look cleaner.
  // @see template_preprocess_maintenance_page
  if (!$variables['db_is_active']) {
    $variables['site_name'] = '';
  }
  drupal_add_css(drupal_get_path('theme', 'bartik') . '/css/maintenance-page.css');
}