You are here

function editablefields_form_submit_edit_mode in Editable Fields 7

Form submit callback: switch to edit mode.

1 string reference to 'editablefields_form_submit_edit_mode'
editablefields_form in ./editablefields.module
Form builder callback.

File

./editablefields.module, line 524
Editable fields module.

Code

function editablefields_form_submit_edit_mode(&$form, &$form_state) {

  // Remove the 'actions' and 'link' elements.
  $parents = $form_state['triggering_element']['#array_parents'];
  array_pop($parents);
  array_pop($parents);
  _editablefields_set_edit_mode($form_state, TRUE, $parents);
  $form_state['rebuild'] = TRUE;
}