You are here

function css_editor_custom_theme in CSS Editor 7

Implements hook_theme().

File

./css_editor.module, line 88

Code

function css_editor_custom_theme() {
  if (isset($_REQUEST['theme']) && isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] == url('admin/appearance/settings/' . $_REQUEST['theme'], array(
    'absolute' => TRUE,
  ))) {
    return $_REQUEST['theme'];
  }
}