You are here

function hook_entityreference_autofill_supported_widgets in Entity reference autofill 7

Add support for other widgets.

Return value

array Array of element parents that specify where to attach the AJAX callback, keyed by widget type.

See also

entityreference_autofill_supported_widgets()

1 function implements hook_entityreference_autofill_supported_widgets()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

entityreference_autofill_og_entityreference_autofill_supported_widgets in entityreference_autofill_og/entityreference_autofill_og.module
Implements hook_entityreference_autofill_supported_widgets().
1 invocation of hook_entityreference_autofill_supported_widgets()
_entityreference_autofill_supported_widgets in ./entityreference_autofill.module
Widget form array paths keyed by widget type.

File

./entityreference_autofill.api.php, line 17
Hook documentation for the Entity reference autofill module.

Code

function hook_entityreference_autofill_supported_widgets() {

  // Add support for organic groups widget.
  // By setting value to NULL, no ajax wrapper will be
  // added to the field itself, but both group and
  // admin selection fields will be autofill-enabled.
  return array(
    'og_complex' => NULL,
  );
}