function file_entity_add_upload_step_filetype

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

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

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

Code

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

  $form['type'] = array(
    '#type' => 'radios',
    '#title' => t('File type'),
    '#options' => file_entity_get_filetype_candidates($file),
    '#default_value' => isset($form_state['storage']['type']) ? $form_state['storage']['type'] : NULL,
    '#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.