You are here

function swftools_admin_generic_form in SWF Tools 6

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

Implementation of swftools_admin_hook_form. Return the system settings page for generic players

1 string reference to 'swftools_admin_generic_form'
genericplayers_menu in ./genericplayers.module
Implementation of hook_menu(). Items such as access control is set by swftools automatically This is not a "true" hook, but the contents returned by this function are merged with swftools_menu to provide the complete menu structure for SWF Tools

File

./genericplayers.module, line 75

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 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);
}