You are here

function scald_flash_scald_add_form in Scald: Media Management made easy 7

File

modules/providers/scald_flash/scald_flash.module, line 19
Defines a flash provider for Scald.

Code

function scald_flash_scald_add_form(&$form, &$form_state) {
  $defaults = scald_atom_defaults('flash');
  $form['file_swf'] = array(
    '#type' => $defaults->upload_type,
    '#title' => t('SWF File'),
    '#upload_location' => 'public://atoms/swf/',
    '#upload_validators' => array(
      'file_validate_extensions' => array(
        'swf',
      ),
    ),
  );
}