function file_entity_add_upload_step_scheme

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

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

1 call to file_entity_add_upload_step_scheme()
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 145
Supports file operations including View, Edit, and Delete.

Code

function file_entity_add_upload_step_scheme($form, &$form_state, array $options = array()) {
  $file = file_load($form_state['storage']['upload']);

  $options = array();
  foreach (file_get_stream_wrappers(STREAM_WRAPPERS_WRITE_VISIBLE) as $scheme => $info) {
    $options[$scheme] = check_plain($info['description']);
  }

  $form['scheme'] = array(
    '#type' => 'radios',
    '#title' => t('Destination'),
    '#options' => $options,
    '#default_value' => isset($form_state['storage']['scheme']) ? $form_state['storage']['scheme'] : file_default_scheme(),
    '#required' => TRUE,
  );

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

  return $form;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.