file.inc 370 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Insert support for File module.
  5. */
  6. /**
  7. * Implementation of hook_insert_widgets().
  8. */
  9. function file_insert_widgets() {
  10. return array(
  11. 'file_generic' => array(
  12. 'element_type' => 'managed_file',
  13. 'wrapper' => '.file-widget',
  14. 'fields' => array(
  15. 'description' => 'input[name$="[description]"]',
  16. ),
  17. ),
  18. );
  19. }