You are here

function _onepixelout_settings in SWF Tools 5

Same name and namespace in other branches
  1. 6 onepixelout/onepixelout.module \_onepixelout_settings()
  2. 6.2 onepixelout/onepixelout.module \_onepixelout_settings()

These are the default settings as they are stored in the database and displayed on the settings page.

2 calls to _onepixelout_settings()
_onepixelout_admin_form in onepixelout/onepixelout.admin.inc
_onepixelout_flashvars in onepixelout/onepixelout.module
This function takes the module settings and massages them as required for flashvar output.

File

onepixelout/onepixelout.module, line 78

Code

function _onepixelout_settings() {
  $saved = variable_get('swftools_' . ONEPIXELOUT, array());
  $defaults = array(
    'autostart' => 'no',
    'loop' => 'no',
    'bg' => '',
    'leftbg' => '',
    'rightbg' => '',
    'rightbghover' => '',
    'lefticon' => '',
    'righticon' => '',
    'righticonhover' => '',
    'text' => '',
    'slider' => '',
    'loader' => '',
    'track' => '',
    'border' => '',
  );
  return array_merge($defaults, $saved);
}