You are here

function themekey_css_options in ThemeKey 7.3

Creates options array for a theme select box.

Example: $form['theme'] = array( '#type' => 'select', '#title' => t('Theme'), '#options' => themekey_theme_options(), );

Parameters

$default: Boolean to indicate if options array should contain 'System default' theme. Default is TRUE.

$admin: Boolean to indicate if options array should contain 'Administration theme'. Default is FALSE.

Return value

options array for a theme select box

1 call to themekey_css_options()
themekey_css_rule_chain_form in themekey_css/themekey_css_admin.inc
Form builder for the rule chain.

File

themekey_css/themekey_css_build.inc, line 33
The functions in this file are the back end of ThemeKey which should be used only if you configure something, but not when ThemeKey switches themes.

Code

function themekey_css_options() {
  return variable_get('themekey_css_files', array());
}