You are here

function hook_royalslider_skins_alter in RoyalSlider Integration 7

Implements hook_royalslider_skins_alter().

Alter the available RoyalSlider skins.

Used to add new custom skins or alter the existing ones.

Parameters

array: An array of skin information, containing:

  • name: The human-friendly name of the skin.
  • class: The class name for this skin, as defined in the css file.
1 invocation of hook_royalslider_skins_alter()
royalslider_skins in ./royalslider.module
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

File

./royalslider.api.php, line 37
API Documentation for RoyalSlider module.

Code

function hook_royalslider_skins_alter(&$skins) {
  $skins['my-awesome-skin'] = array(
    'name' => t('My Awesome Skin'),
    'class' => 'rsAwesome',
  );
}