You are here

jw_player.api.php in JW Player 8

Same filename and directory in other branches
  1. 7.2 jw_player.api.php
  2. 7 jw_player.api.php

Hooks provided by JW Player.

File

jw_player.api.php
View 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