Révision c0bac9d6
Ajouté par Assos Assos il y a presque 6 ans
drupal7/sites/all/modules/file_entity/file_entity.api.php | ||
---|---|---|
405 | 405 |
function hook_file_metadata_info_alter() { |
406 | 406 |
|
407 | 407 |
} |
408 |
|
|
409 |
/** |
|
410 |
* Alters skip fields status. |
|
411 |
* |
|
412 |
* Use this to choose to skip or complete step 4 of the file upload process. |
|
413 |
* |
|
414 |
* @param bool &$skip_fields |
|
415 |
* Set to TRUE to skip the form for editing extra file entity fields. |
|
416 |
* @param array $form_state |
|
417 |
* State array of the current upload form. |
|
418 |
*/ |
|
419 |
function hook_file_entity_file_upload_skip_fields_alter(&$skip_fields, $form_state) { |
|
420 |
if ($form_state['file']->type == 'video') { |
|
421 |
$skip_fields = TRUE; |
|
422 |
} |
|
423 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules