You are here

function _scrollreveal_defaults in Scroll Reveal 7

Same name and namespace in other branches
  1. 7.2 scrollreveal.install \_scrollreveal_defaults()

Default settings storage.

1 call to _scrollreveal_defaults()
scrollreveal_install in ./scrollreveal.install
Implementation of hook_install(). This will create our system variable defaults. The benefit is that we do not need to pass defaults to variable_get(), which allows centralization of defaults.

File

./scrollreveal.install, line 13
scrollreveal.install Installation and update functions for the ScrollReveal Module

Code

function _scrollreveal_defaults() {
  $theme = variable_get('theme_default', NULL);
  return array(
    'config' => array(
      'enter' => 'bottom',
      'move' => 24,
      'over' => 0.66,
      'after' => 0,
      'easing' => 'ease',
      'reset' => 'false',
      'viewportFactor' => 0.33,
    ),
    'pages' => array(
      'visibility' => 0,
      'pages' => 'admin/*',
    ),
    'theme' => array(
      'visibility' => 1,
      'themes' => array(
        $theme => $theme,
      ),
    ),
  );
}