1 color.module color_custom_theme()

Implements hook_custom_theme().

File

core/modules/color/color.module, line 299
Allows users to change the color scheme of themes.

Code

function color_custom_theme() {
  $preview = _color_preview_theme();
  if ($preview) {
    // Suppress the Admin Bar, but only if the module is actually enabled.
    if (module_exists('admin_bar')) {
      admin_bar_suppress();
    }
    return $preview;
  }
}