You are here

function vertical_tabs_install_color_generate in Vertical Tabs 6

Initialize the color-enabled stylesheet if using Garland.

3 calls to vertical_tabs_install_color_generate()
vertical_tabs_enable in ./vertical_tabs.install
Implement hook_enable().
vertical_tabs_update_6101 in ./vertical_tabs.install
Color-enable the module if using Garland.
vertical_tabs_update_6102 in ./vertical_tabs.install
Regenerate the stylesheets if using Garland to accomidate for CSS changes.

File

./vertical_tabs.install, line 94
Install, update and uninstall functions for the vertical_tabs module.

Code

function vertical_tabs_install_color_generate() {
  if (variable_get('theme_default', 'garland') == 'garland' || variable_get('admin_theme', '0') == 'garland') {
    if (module_exists('color')) {
      $theme = 'garland';
      $info = color_get_info($theme);
      $palette = color_get_palette($theme);
      drupal_load('module', 'vertical_tabs');
      vertical_tabs_generate_stylesheet('garland', $info, $palette);
    }
  }
}