You are here

function ctools_ajax_command_replace_active_element in Editable Fields 6.3

Editablefields version of replace CTools command. It uses the

The replace command will replace a portion of the current document with the specified HTML.

Parameters

$html: The data to use with the jquery replace() function.

Return value

array

1 call to ctools_ajax_command_replace_active_element()
editablefields_inline_form_render in plugins/responders/inline.inc
Render a form into an AJAX display.

File

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

Code

function ctools_ajax_command_replace_active_element($index, $html) {
  return array(
    'command' => 'replace_active_element',
    'active_elem_index' => $index,
    'data' => $html,
  );
}