1 theme.inc _backdrop_theme_access($theme)

Helper function for determining access to a theme.

See also

backdrop_theme_access()

File

core/includes/theme.inc, line 77
The theme system, which controls the output of Backdrop.

Code

function _backdrop_theme_access($theme) {
  $admin_theme = config_get('system.core', 'admin_theme');
  return !empty($theme->status) || ($admin_theme && $theme->name == $admin_theme);
}