jw_player.api.php in JW Player 8
Same filename and directory in other branches
Hooks provided by JW Player.
File
jw_player.api.phpView source
<?php
/**
* @file
* Hooks provided by JW Player.
*/
/**
* Implements hook_jw_player_plugin_info().
*/
function hook_jw_player_plugin_info($preset) {
// Create a plugin keyed by its actual plugin id.
$plugins['foo'] = array(
'name' => t('Foobar'),
'description' => t('A plugin to do foobar'),
// Note: Each option should be in a valid FAPI format, as it is directly
// referenced in the preset settings form, except the '#title' may be
// omitted for the name of the option to be taken as default.
'config options' => array(
'accountid' => array(
'#type' => 'textfield',
'#required' => TRUE,
'#size' => 15,
'#default_value' => 'bar',
),
'param2' => array(
'#type' => 'select',
'#options' => array(
'TRUE' => t('TRUE'),
'FALSE' => t('FALSE'),
),
'#default_value' => 'TRUE',
'#description' => t('Enables the controls on an item when playing'),
),
),
);
return $plugins;
}
Functions
Name | Description |
---|---|
hook_jw_player_plugin_info | Implements hook_jw_player_plugin_info(). |