function osmplayer_osmplayer_params in MediaFront 7.2
Implements hook_osmplayer_params().
File
- players/
osmplayer/ osmplayer.module, line 439
Code
function osmplayer_osmplayer_params($params) {
$settings = array();
$defaults = osmplayer_get_player_params();
foreach ($params as $key => $value) {
if (isset($defaults[$key])) {
$type = gettype($defaults[$key]);
if ($type == 'boolean' || $type == 'integer') {
settype($value, $type);
}
$settings[$key] = $value;
}
}
return $settings;
}