You are here

function jw_player_settings_form in JW Player 7

Same name and namespace in other branches
  1. 7.2 jw_player.admin.inc \jw_player_settings_form()

General settings form

1 string reference to 'jw_player_settings_form'
jw_player_menu in ./jw_player.module
Implements hook_menu().

File

./jw_player.admin.inc, line 11
Provides admin settings form(s)

Code

function jw_player_settings_form($form) {
  drupal_set_title(t('JW Player general settings'));
  $form['jw_player_inline_js'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use inline javascript'),
    '#description' => t('With this option enabled JW Player configuration will be printed inline directly after the player markup. This can be useful if the player markup is cached as otherwise JW Player will not be loaded. The downside is that the player itself will be loaded on all pages.'),
    '#default_value' => variable_get('jw_player_inline_js', TRUE),
  );
  $form['jw_player_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Licence key'),
    '#description' => t('If you have a premium account enter your key here'),
    '#default_value' => variable_get('jw_player_key', NULL),
  );
  return system_settings_form($form);
}