You are here

function _swftools_integrate_admin_form in SWF Tools 5

1 call to _swftools_integrate_admin_form()
swftools_integrate_admin_form in ./swftools_integrate.module

File

./swftools_integrate.admin.inc, line 3

Code

function _swftools_integrate_admin_form() {
  $form = array();
  $form['swftools_integrate'] = array(
    '#type' => 'fieldset',
    '#title' => t('SWF Tools Integration Options'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $file_types = array(
    'img' => 'Images',
    'mp3' => 'Audio (MP3)',
    'flv' => 'Flash video (FLV)',
    'swf' => 'SWF files (SWF)',
  );
  $form['swftools_integrate']['swftools_integrate_render_upload'] = array(
    '#type' => 'select',
    '#default_value' => variable_get('swfintegrate_render_upload', array()),
    '#title' => t('Render Attachments'),
    '#description' => t('Automatically show attachments in a media player,
                         attachments are files attached to a node using
                         Upload module.'),
    '#options' => $file_types,
    '#multiple' => TRUE,
  );
  return $form;
}