You are here

function royalslider_skins in RoyalSlider Integration 7

Returns an array of available RoyalSlider skins, keyed by machine-name. Custom skins should adopt the same naming conventions for directory and filenames as the ones provided by default by RoyalSlider, ie: foo/rs-foo.css

Return value

array

4 calls to royalslider_skins()
royalsliderfield_preprocess_royalsliderfield in contrib/royalsliderfield/royalsliderfield.module
Implements hook_preprocess_HOOK().
royalslider_form_optionset_edit in ./royalslider.admin.inc
Form builder; Form to edit a given option set.
royalslider_preprocess_royalslider in theme/royalslider.theme.inc
Implements hook_preprocess_HOOK().
_royalslider_skins in ./royalslider.module
Return an array of RoyalSlider Skins. It's used to populate select form items.

File

./royalslider.module, line 704
RoyalSlider module.

Code

function royalslider_skins() {
  $skins =& drupal_static(__FUNCTION__, NULL);
  if (!isset($skins)) {
    $skins = array(
      'default' => array(
        'name' => t('Default'),
        'class' => 'rsDefault',
      ),
      'default-inverted' => array(
        'name' => t('Default inverted'),
        'class' => 'rsDefaultInv',
      ),
      'minimal-white' => array(
        'name' => t('Minimal white'),
        'class' => 'rsMinW',
      ),
      'universal' => array(
        'name' => t('Universal'),
        'class' => 'rsUni',
      ),
    );

    // Let other modules alter this.
    drupal_alter('royalslider_skins', $skins);
  }
  return $skins;
}