You are here

function mediafront_get_player_params in MediaFront 7.2

Same name and namespace in other branches
  1. 6.2 mediafront.module \mediafront_get_player_params()
  2. 6 mediafront.module \mediafront_get_player_params()
  3. 7 mediafront.module \mediafront_get_player_params()

Returns the player's default parameters.

Parameters

$player:

1 call to mediafront_get_player_params()
mediafront_get_settings in ./mediafront.module
Returns ALL the player settings for the given player provided settings to override.

File

./mediafront.module, line 224

Code

function mediafront_get_player_params($player) {
  $settings = array();
  $get_params = $player . '_get_player_params';
  if (function_exists($get_params)) {
    $settings = $get_params();
  }
  drupal_alter('mediafront_player_params', $settings);
  return $settings;
}