You are here

function styleswitcher_custom_styles in Style Switcher 7.2

Same name and namespace in other branches
  1. 8.2 styleswitcher.module \styleswitcher_custom_styles()
  2. 6.2 styleswitcher.module \styleswitcher_custom_styles()
  3. 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

styleswitcher_style_load()

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.
4 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().
styleswitcher_update_7205 in ./styleswitcher.install
Filter out styles: delete theme's ones - they will be loaded alive.

File

./styleswitcher.module, line 477
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);
}