You are here

function hook_filefield_sources_widgets in FileField Sources 8

Same name and namespace in other branches
  1. 6 filefield_sources.api.php \hook_filefield_sources_widgets()
  2. 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.

filefield_sources_filefield_sources_widgets in ./filefield_sources.module
Implements hook_filefield_sources_widgets().
3 invocations of hook_filefield_sources_widgets()
filefield_sources_field_widget_form_alter in ./filefield_sources.module
Implements hook_field_widget_form_alter().
filefield_sources_field_widget_settings_summary_alter in ./filefield_sources.module
Implements hook_field_widget_settings_summary_alter().
filefield_sources_field_widget_third_party_settings_form in ./filefield_sources.module
Implements hook_field_widget_third_party_settings_form().

File

./filefield_sources.api.php, line 20
This file documents hooks provided by the FileField Sources module.

Code

function hook_filefield_sources_widgets() {

  // Add any widgets that your module supports here.
  return [
    'mymodule_file_widgetname',
  ];
}