You are here

public static function RotatingBanner::getDefaultSettings in Rotating Banner 7.2

Same name and namespace in other branches
  1. 7 rotating_banner.classes.inc \RotatingBanner::getDefaultSettings()
2 calls to RotatingBanner::getDefaultSettings()
RotatingBanner::create in ./rotating_banner.classes.inc
rotating_banner_defaults in ./rotating_banner.module

File

./rotating_banner.classes.inc, line 166

Class

RotatingBanner

Code

public static function getDefaultSettings($key = NULL) {

  //@todo: add variables here.
  static $defaults = array(
    'controls' => 'buttons',
    'prev_next' => 0,
    'width' => '',
    'height' => '',
    'fluid' => TRUE,
    'cycle' => array(
      'fx' => 'scrollDown',
      'timeout' => 8000,
      'fit' => 0,
    ),
  );
  if ($key) {
    return $defaults[$key];
  }
  return $defaults;
}