function osmplayer_get_settings_output in MediaFront 7.2
Returns the settings output for this media player.
Parameters
type $settings:
Return value
type
2 calls to osmplayer_get_settings_output()
- osmplayer_add_connection in players/
osmplayer/ osmplayer.module - Connects two plugins.
- osmplayer_get_player in players/
osmplayer/ osmplayer.module - Implements hook_get_player()
File
- players/
osmplayer/ osmplayer.module, line 158
Code
function osmplayer_get_settings_output($type, $settings) {
$js = 'Drupal.settings.' . $type . ' = Drupal.settings.' . $type . ' || {};';
$js .= 'jQuery.extend(Drupal.settings.' . $type . ', ' . drupal_json_encode($settings) . ');';
return theme('html_tag', array(
'element' => array(
'#tag' => 'script',
'#value' => $js,
'#attributes' => array(
'type' => 'text/javascript',
),
),
));
}