You are here

function hook_file_entity_file_upload_skip_fields_alter in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.api.php \hook_file_entity_file_upload_skip_fields_alter()

Alters skip fields status.

Use this to choose to skip or complete step 4 of the file upload process.

Parameters

bool &$skip_fields: Set to TRUE to skip the form for editing extra file entity fields.

array $form_state: State array of the current upload form.

1 invocation of hook_file_entity_file_upload_skip_fields_alter()
file_entity_add_upload_submit in ./file_entity.pages.inc
Submit handler for the add file form.

File

./file_entity.api.php, line 419
Hooks provided by the File Entity module.

Code

function hook_file_entity_file_upload_skip_fields_alter(&$skip_fields, $form_state) {
  if ($form_state['file']->type == 'video') {
    $skip_fields = TRUE;
  }
}