function themekey_redirect_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_redirect_options()
- themekey_redirect_rule_chain_form in themekey_redirect/
themekey_redirect_admin.inc - Form builder for the rule chain.
File
- themekey_redirect/
themekey_redirect_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_redirect_options() {
return variable_get('themekey_redirect_files', array());
}