You are here

function _onepixelout_flashvars in SWF Tools 6

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

This function takes the module settings and massages them as required for flashvar output.

1 call to _onepixelout_flashvars()
onepixelout_swftools_flashvars in onepixelout/onepixelout.module
Implementation of swftools_flashvars hook. Return an array of flashvars.

File

onepixelout/onepixelout.module, line 104

Code

function _onepixelout_flashvars() {

  // Cache this.
  static $flashvars = array();
  if (!count($flashvars)) {

    // Get saved settings for this method.
    $saved = _onepixelout_settings();
    foreach ($saved as $key => $setting) {
      if (!$setting || $setting == 'default') {

        // Don't pass out any undefined values.
        unset($saved[$key]);
      }
    }
  }
  return $saved;
}