function hook_references_dialog_widgets_alter in References dialog 7
Alter the widget definitions provided by hook_references_dialog_widgets().
Parameters
$widgets: The associative array of widget definitions.
See also
hook_references_dialog_widgets()
Related topics
1 invocation of hook_references_dialog_widgets_alter()
- references_dialog_widgets in ./
references_dialog.module - Return an array of supported widgets.
File
- ./
references_dialog.api.php, line 59 - This file contains documentation on hooks provided by this module.
Code
function hook_references_dialog_widgets_alter(&$widgets) {
$search = $widgets['entityreference_autocomplete']['operations']['search'];
unset($widgets['entityreference_autocomplete']['operations']['search']);
$widgets['entityreference_autocomplete']['operations'] = array(
'search' => $search,
) + $widgets['entityreference_autocomplete']['operations'];
}