You are here

function swftools_get_players in SWF Tools 6.3

Returns the default handlers, or customised handlers, for each action.

1 call to swftools_get_players()
swftools_get_player in ./swftools.module
Returns the currently configured player for the specified action and profile.

File

./swftools.module, line 1796
The primary component of SWF Tools that enables comprehensive media handling.

Code

function swftools_get_players($profile) {

  // These are the standard defaults (key is action, value is handler)
  $defaults = array(
    'video' => 'generic_flv',
    'audio' => 'generic_mp3',
    'swf' => 'swf',
  );

  // Retrieve settings from the database if available
  $settings = swftools_variable_get('swftools_handlers', $defaults, $profile);

  // Return result
  return $settings;
}