/** * Implements HOOK_theme(). */ function cms_base_theme(&$existing, $type, $theme, $path) { if (!db_is_active()) { return array(); } return _cms_base_theme($existing, $type, $theme, $path); }
/** * Implements HOOK_theme(). */ function zen_theme(&$existing, $type, $theme, $path) { if (!db_is_active()) { return array(); } include_once './' . drupal_get_path('theme', 'zen') . '/template.theme-registry.inc'; return _zen_theme($existing, $type, $theme, $path); }
/** * Maintenance page preprocessing */ function fusion_core_preprocess_maintenance_page(&$vars) { if (db_is_active()) { fusion_core_preprocess_page($vars); } }
/** * Implementation of hook_theme(). * * @return */ function omega_theme(&$existing, $type, $theme, $path) { if (!db_is_active()) { return array(); } include_once './' . drupal_get_path('theme', 'omega') . '/theme-functions.inc'; // Since we are rebuilding the theme registry and the theme settings' default // values may have changed, make sure they are saved in the database properly. omega_theme_get_default_settings($theme); return array( 'id_safe' => array( 'arguments' => array('string'), ), 'render_attributes' => array( 'arguments' => array('attributes'), ), ); }// */
<?php // $Id: template.php,v 1.1.2.6 2009/12/24 01:47:01 jmburnz Exp $ // adaptivethemes.com /** * @file template.php */ // Don't include custom functions if the database is inactive. if (db_is_active()) { // Include base theme custom functions. include_once drupal_get_path('theme', 'adaptivetheme') . '/inc/template.custom-functions.inc'; } /** * Add the color scheme stylesheet if color_enable_schemes is set to 'on'. * Note: you must have at minimum a color-default.css stylesheet in /css/theme/ */ if (theme_get_setting('color_enable_schemes') == 'on') { drupal_add_css(drupal_get_path('theme', 'bccgbcrm') . '/css/theme/' . get_at_colors(), 'theme'); } /** * USAGE * 1. Rename each function to match your subthemes name, * e.g. if you name your theme "themeName" then the function * name will be "themeName_preprocess_hook". * 2. Uncomment the required function to use. You can delete the * "sample_variable". */ /** * Override or insert variables into all templates. * * @param $vars