You are here

function better_messages_get_settings in Better Messages 6.2

Same name and namespace in other branches
  1. 6 better_messages.module \better_messages_get_settings()
  2. 7 better_messages.module \better_messages_get_settings()
4 calls to better_messages_get_settings()
better_messages_add_files in ./better_messages.module
better_messages_admin in ./better_messages.inc
better_messages_preprocess_page in ./better_messages.module
better_messages_process_visibility in ./better_messages.module

File

./better_messages.module, line 133

Code

function better_messages_get_settings() {

  // Invoke better_messages_skins
  $skins = better_messages_get_skins();

  // Settings
  $settings = array(
    'position' => variable_get('better_messages_pos', 'center'),
    'vertical' => variable_get('better_messages_vertical', 0),
    'horizontal' => variable_get('better_messages_horizontal', 10),
    'fixed' => variable_get('better_messages_fixed', 1),
    'width' => variable_get('better_messages_width', '400px'),
    'autoclose' => variable_get('better_messages_autoclose', 0),
    'opendelay' => variable_get('better_messages_open_delay', 0.3),
    'disable_autoclose' => variable_get('better_messages_disable_autoclose', 0),
    'popin' => array(
      'effect' => variable_get('better_messages_popin_effect', 'fadeIn'),
      'duration' => variable_get('better_messages_popin_duration', 'slow'),
    ),
    'popout' => array(
      'effect' => variable_get('better_messages_popout_effect', 'fadeOut'),
      'duration' => variable_get('better_messages_popout_duration', 'slow'),
    ),
    'extra' => array(
      'skin' => variable_get('better_messages_skin', key($skins)),
      'skins' => $skins,
      'pages' => variable_get('better_messages_pages', ''),
      'visibility' => variable_get('better_messages_visibility', 0),
    ),
  );
  return $settings;
}