function styleswitcher_custom_styles in Style Switcher 6.2
Same name and namespace in other branches
- 8.2 styleswitcher.module \styleswitcher_custom_styles()
- 7.2 styleswitcher.module \styleswitcher_custom_styles()
- 3.0.x styleswitcher.module \styleswitcher_custom_styles()
Returns a list of custom styles.
Return value
array Array which keys are styles machine names and each element is a corresponding array with properties: name, label and path. All properties are mandatory. See styleswitcher_style_load() for their descriptions.
See also
4 calls to styleswitcher_custom_styles()
- styleswitcher_admin in ./
styleswitcher.admin.inc - Page callback: Constructs a form for the Styleswitcher configuration.
- styleswitcher_style_delete_form_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_style_delete_form().
- styleswitcher_style_form_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_style_form().
- styleswitcher_style_load_multiple in ./
styleswitcher.module - Returns a list of styles.
3 string references to 'styleswitcher_custom_styles'
- styleswitcher_style_delete_form_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_style_delete_form().
- styleswitcher_style_form_submit in ./
styleswitcher.admin.inc - Form submission handler for styleswitcher_style_form().
- styleswitcher_uninstall in ./
styleswitcher.install - Implements hook_uninstall().
File
- ./
styleswitcher.module, line 475 - Module's hooks implementations and helper functions.
Code
function styleswitcher_custom_styles() {
$defaults['custom/default'] = array(
'name' => 'custom/default',
'label' => 'Default',
'path' => NULL,
);
return variable_get('styleswitcher_custom_styles', $defaults);
}