function _royalslider_jqeasing_options in RoyalSlider Integration 7
List of all easing methods available from jQuery Easing v1.3.
Note: This should really go in the jqeasing module. But we're keeping it here since that module doesn't seem like it's getting updated too often.
Return value
array
1 call to _royalslider_jqeasing_options()
- royalslider_option_elements in ./
royalslider.admin.inc - Defines the form elements used to edit the RoyalSlider library options
File
- ./
royalslider.module, line 578 - RoyalSlider module.
Code
function _royalslider_jqeasing_options() {
$easing_methods =& drupal_static(__FUNCTION__);
if (!isset($easing_methods)) {
$easing_methods = array(
'jswing',
'def',
'easeInQuad',
'easeOutQuad',
'easeInOutQuad',
'easeInCubic',
'easeOutCubic',
'easeInOutCubic',
'easeInQuart',
'easeOutQuart',
'easeInOutQuart',
'easeInQuint',
'easeOutQuint',
'easeInOutQuint',
'easeInSine',
'easeOutSine',
'easeInOutSine',
'easeInExpo',
'easeOutExpo',
'easeInOutExpo',
'easeInCirc',
'easeOutCirc',
'easeInOutCirc',
'easeInElastic',
'easeOutElastic',
'easeInOutElastic',
'easeInBack',
'easeOutBack',
'easeInOutBack',
'easeInBounce',
'easeOutBounce',
'easeInOutBounce',
);
// Allow other modules to alter this.
drupal_alter('royalslider_easing', $easing_methods);
// Make this into an associative array.
$easing_methods = drupal_map_assoc($easing_methods);
}
return $easing_methods;
}