You are here

function _entityreference_form_process_merge_parent in Entity reference 7

Same name and namespace in other branches
  1. 8 entityreference.module \_entityreference_form_process_merge_parent()

Custom callback for element processing.

4 string references to '_entityreference_form_process_merge_parent'
entityreference_field_instance_settings_form in ./entityreference.module
Implements hook_field_instance_settings_form().
EntityReference_SelectionHandler_Generic::settingsForm in plugins/selection/EntityReference_SelectionHandler_Generic.class.php
Implements EntityReferenceHandler::settingsForm().
_entityreference_field_settings_process in ./entityreference.module
Callback for custom element processing.
_entityreference_get_behavior_elements in ./entityreference.module
Get the field or instance elements for the field configuration.

File

./entityreference.module, line 536
Entityreference primary module file.

Code

function _entityreference_form_process_merge_parent($element) {
  $parents = $element['#parents'];
  array_pop($parents);
  $element['#parents'] = $parents;
  return $element;
}