You are here

function hook_filefield_sources_widgets in FileField Sources 7

Same name and namespace in other branches
  1. 8 filefield_sources.api.php \hook_filefield_sources_widgets()
  2. 6 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().
2 invocations of hook_filefield_sources_widgets()
filefield_sources_field_widget_info_alter in ./filefield_sources.module
A list of settings needed by FileField Sources module on widgets.
filefield_sources_form_field_ui_field_edit_form_alter in ./filefield_sources.module
Implements hook_form_FORM_ID_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',
  );
}