You are here

function _itoggle_jqeasing_options in iToggle 7.2

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 _itoggle_jqeasing_options()
itoggle_form_admin in ./itoggle.admin.inc
Form callback.

File

./itoggle.admin.inc, line 162
iToggle settings.

Code

function _itoggle_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('itoggle_easing', $easing_methods);

    // Map this into an associative array.
    $easing_methods = drupal_map_assoc($easing_methods);
  }
  return $easing_methods;
}