You are here

function swftools_admin_generic_form in SWF Tools 5

Same name and namespace in other branches
  1. 6.3 includes/swftools.genericplayers.inc \swftools_admin_generic_form()
  2. 6 genericplayers.module \swftools_admin_generic_form()
  3. 6.2 genericplayers.module \swftools_admin_generic_form()

Implementation of swftools_admin_hook_form. Return the system settings page.

File

./genericplayers.module, line 62

Code

function swftools_admin_generic_form() {
  $form = array();
  $methods = swftools_methods_available(SWFTOOLS_EMBED_METHOD);
  $form['generic_mp3_autostart'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('generic_mp3_autostart', FALSE),
    '#title' => t('Autostart MP3'),
    '#description' => t('Automatically start playing the MP3 file.'),
  );
  $form['generic_flv_autostart'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('generic_flv_autostart', FALSE),
    '#title' => t('Autostart FLV'),
    '#enabled' => FALSE,
    // Haven't built the FLV Player yet.
    '#description' => t('Automatically start playing FLV file.'),
  );
  return system_settings_form($form);
}