You are here

function editablefields_inline_form_render in Editable Fields 6.3

Render a form into an AJAX display.

1 call to editablefields_inline_form_render()
editablefields_inline_form_wrapper in plugins/responders/inline.inc

File

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

Code

function editablefields_inline_form_render($active_elem_index, $form_state, $output) {
  $title = empty($form_state['title']) ? drupal_get_title() : $form_state['title'];

  // If there are messages for the form, render them.
  if ($messages = theme('status_messages')) {
    $output = '<div class="messages">' . $messages . '</div>' . $output;
  }
  $commands = array();
  if (isset($form_state['js settings'])) {
    $commands[] = ctools_ajax_command_settings($form_state['js settings']);
  }
  $commands[] = ctools_ajax_command_replace_active_element($active_elem_index, $output);
  return $commands;
}