function editablefields_form_update in Editable Fields 7
Ajax callback: process an Ajax submission of the form.
1 string reference to 'editablefields_form_update'
- editablefields_form in ./
editablefields.module - Form builder callback.
File
- ./
editablefields.module, line 499 - Editable fields module.
Code
function editablefields_form_update($form, $form_state) {
// Return the proper part of the form.
$parents = $form_state['triggering_element']['#array_parents'];
// Remove the 'actions' and 'link' elements.
array_pop($parents);
array_pop($parents);
$element =& $form;
foreach ($parents as $parent) {
$element =& $element[$parent];
}
return $element;
}