function file_entity_add_upload_step_upload

cis7 file_entity.pages.inc file_entity_add_upload_step_upload($form, &$form_state, array $options = array())
cle7 file_entity.pages.inc file_entity_add_upload_step_upload($form, &$form_state, array $options = array())
elmsmedia7 file_entity.pages.inc file_entity_add_upload_step_upload($form, &$form_state, array $options = array())
icor7 file_entity.pages.inc file_entity_add_upload_step_upload($form, &$form_state, array $options = array())
meedjum_blog7 file_entity.pages.inc file_entity_add_upload_step_upload($form, &$form_state, array $options = array())
mooc7 file_entity.pages.inc file_entity_add_upload_step_upload($form, &$form_state, array $options = array())

Generate form fields for the first step in the add file wizard.

1 call to file_entity_add_upload_step_upload()
file_entity_add_upload in sites/all/modules/ulmus/file_entity/file_entity.pages.inc
Form callback for adding a file via an upload form.

File

sites/all/modules/ulmus/file_entity/file_entity.pages.inc, line 90
Supports file operations including View, Edit, and Delete.

Code

function file_entity_add_upload_step_upload($form, &$form_state, array $options = array()) {
  $form['upload'] = array(
    '#type' => 'managed_file',
    '#title' => t('Upload a new file'),
    '#upload_location' => file_entity_upload_destination_uri($options),
    '#upload_validators' => file_entity_get_upload_validators($options),
    '#progress_indicator' => 'bar',
    '#required' => TRUE,
    '#pre_render' => array('file_managed_file_pre_render', 'file_entity_upload_validators_pre_render'),
    '#default_value' => isset($form_state['storage']['upload']) ? $form_state['storage']['upload'] : NULL,
  );

  $form['actions'] = array('#type' => 'actions');
  $form['actions']['next'] = array(
    '#type' => 'submit',
    '#value' => t('Next'),
  );

  form_load_include($form_state, 'inc', 'file_entity', 'file_entity.pages');

  return $form;
}