1 file.api.php | hook_file_upload_skip_fields_alter(&$skip_fields, $form_state) |
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.
File
- core/
modules/ file/ file.api.php, line 488 - Hooks for file module.
Code
function hook_file_upload_skip_fields_alter(&$skip_fields, $form_state) {
if ($form_state['file']->type == 'video') {
$skip_fields = TRUE;
}
}