function plugin_field_widget_info_alter in Plugin 8.2
Implements hook_field_widget_info_alter().
File
- ./
plugin.module, line 27 - Contains hook implementations.
Code
function plugin_field_widget_info_alter(array &$field_widget_definitions) {
$field_type_ids = _plugin_collection_field_type_ids();
foreach ($field_widget_definitions as $plugin_id => $field_widget_definition) {
if (strpos($plugin_id, 'plugin_selector:') === 0) {
$field_widget_definitions[$plugin_id]['field_types'] = $field_type_ids;
}
}
}