You are here

function dxpr_theme_helper_custom_theme in DXPR Theme Helper 7

Implements hook_custom_theme().

Enable DXPR Theme for preview in DXPR Theme settings

See also

dxpr_theme_helper_admin_paths()

File

./dxpr_theme_helper.module, line 43

Code

function dxpr_theme_helper_custom_theme() {
  if (arg(0) == 'admin' && arg(1) == 'appearance' && arg(2) == 'settings' && arg(3)) {
    $current_theme = check_plain(arg(3));
    return $current_theme;
  }
}