You are here

function _asset_widget_is_admin_theme in Asset 7

Helper function to determine if current theme is admin theme.

1 call to _asset_widget_is_admin_theme()
asset_widget_element_info_alter in modules/asset_widget/asset_widget.module
Implements hook_element_info_alter().

File

modules/asset_widget/asset_widget.module, line 138
Code for the Asset widget module.

Code

function _asset_widget_is_admin_theme() {
  global $theme_key;
  $admin_theme = variable_get('admin_theme');
  if ($admin_theme && $theme_key == $admin_theme || !$admin_theme && $theme_key == variable_get('admin_theme', 'seven') || variable_get('asset_widget_enable_widget_in_front_theme', FALSE)) {
    return TRUE;
  }
  return FALSE;
}