function entityreference_autocreate_field_widget_info_alter in Entityreference Autocreate 7
Implements hook_widget_info_alter().
Adds settings that we need to declare to widgets we are extending. Need this so that the settings we add to the widget settings form get saved.
File
- ./
entityreference_autocreate.module, line 18 - Intercepts entityreference autocomplete submission validation and creates a target node on the fly if it doesn't yet exist.
Code
function entityreference_autocreate_field_widget_info_alter(array &$info) {
$info['entityreference_autocomplete']['settings']['entityreference_autocreate'] = 0;
$info['entityreference_autocomplete_tags']['settings']['entityreference_autocreate'] = 0;
}