You are here

function forena_ahah_helper_end in Forena Reports 6.2

Helper function to render output forms

Parameters

array $form:

3 calls to forena_ahah_helper_end()
forena_parameters_js in ./forena.common.inc
Ajax callback for settings pages. Enter description here ...
forena_settings_js in ./forena.admin.inc
Ajax callback for settings pages. Enter description here ...
forena_template_info_js in ./forena.admin.inc
Ajax callback for settings pages. Enter description here ...

File

./forena.common.inc, line 473
Common functions used throughout the project but loaded in this file to keep the module file lean.

Code

function forena_ahah_helper_end(&$form) {
  unset($form['#prefix'], $form['#suffix']);
  $output = theme('status_messages') . drupal_render($form);

  // Final rendering callback.
  drupal_json(array(
    'status' => TRUE,
    'data' => $output,
  ));
}