You are here

function _themekey_theme_options in ThemeKey 6

Function _themekey_theme_options().

4 calls to _themekey_theme_options()
_themekey_paths_form in ./themekey_admin.inc
Function _themekey_paths_form().
_themekey_properties_form in ./themekey_admin.inc
Function _themekey_properties_form().
_themekey_ui_nodeform in ./themekey_ui_admin.inc
Function _themekey_ui_nodeform().
_themekey_ui_pathalias in ./themekey_ui_admin.inc
Function _themekey_ui_pathalias().

File

./themekey_build.inc, line 6

Code

function _themekey_theme_options($default = TRUE) {
  $themes = system_theme_data();
  ksort($themes);
  $options_themes = array();
  if ($default) {
    $options_themes['default'] = t('System default');
  }
  foreach ($themes as $themex) {
    if ($themex->status || variable_get('themekey_allthemes', 1)) {
      $options_themes[$themex->name] = $themex->info['name'];
    }
  }
  return $options_themes;
}