function hook_filefield_sources_widgets in FileField Sources 6
Same name and namespace in other branches
- 8 filefield_sources.api.php \hook_filefield_sources_widgets()
- 7 filefield_sources.api.php \hook_filefield_sources_widgets()
Returns a list of widgets that are compatible with FileField Sources.
FileField Sources works with the most common widgets used with Drupal (the standard Image and File widgets). Any module that provides another widget for uploading files may add compatibility with FileField Sources by implementing this hook and returning the widgets that their module supports.
1 function implements hook_filefield_sources_widgets()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
2 invocations of hook_filefield_sources_widgets()
- filefield_sources_elements in ./
filefield_sources.module - Implements hook_elements().
- filefield_sources_widget_settings_alter in ./
filefield_sources.module - Implements hook_widget_settings_alter().
File
- ./
filefield_sources.api.php, line 18 - This file documents hooks provided by the FileField Sources module. Note that none of this code is executed by using FileField Sources module, it is provided here for reference as an example how to implement these hooks in your own module.
Code
function hook_filefield_sources_widgets() {
// Add any widgets that your module supports here.
return array(
'mymodule_file_widgetname',
);
}