You are here

function editablefields_inline_form_wrapper in Editable Fields 6.3

1 call to editablefields_inline_form_wrapper()
editablefields_inline in plugins/responders/inline.inc
Menu callback.

File

plugins/responders/inline.inc, line 263
Editablefields CTools modal plugin.

Code

function editablefields_inline_form_wrapper($form_id, &$form_state) {
  ctools_include('form');

  // This won't override settings already in.
  $form_state += array(
    're_render' => FALSE,
    'no_redirect' => !empty($form_state['ajax']),
  );
  $output = ctools_build_form($form_id, $form_state);
  if (!empty($form_state['ajax']) && empty($form_state['executed'])) {
    return editablefields_inline_form_render($form_state['_params']['active_elem_index'], $form_state, $output);
  }
  return $output;
}