You are here

function swftools_admin_generic_form in SWF Tools 6.3

Same name and namespace in other branches
  1. 5 genericplayers.module \swftools_admin_generic_form()
  2. 6 genericplayers.module \swftools_admin_generic_form()
  3. 6.2 genericplayers.module \swftools_admin_generic_form()

Returns the generic player administration form.

1 string reference to 'swftools_admin_generic_form'
swftools_genericplayers_menu in includes/swftools.genericplayers.inc
Implementation of hook_menu().

File

includes/swftools.genericplayers.inc, line 68
Enables SWF Tools support for built-in generic players.

Code

function swftools_admin_generic_form() {
  $form = array();
  $methods = swftools_get_methods('swftools_embed_method');
  $form['generic_mp3_autostart'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('generic_mp3_autostart', FALSE),
    '#title' => t('Autostart MP3 files'),
    '#description' => t('Automatically start playing MP3 files.'),
  );
  $form['generic_flv_autostart'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('generic_flv_autostart', TRUE),
    '#title' => t('Autostart FLV files'),
    '#disabled' => TRUE,
    // Generic player always autoplays
    '#description' => t('Automatically start playing FLV files.<br />
                         This option cannot be changed as the generic player
                         always automatically starts playing FLV files.
                        '),
  );
  return system_settings_form($form);
}