You are here

function mobile_codes_ahah_providers_url in Mobile Codes 6.2

File

includes/ctools.inc, line 247
CTools module integration.

Code

function mobile_codes_ahah_providers_url($form_id, $form, $form_state) {
  mobile_codes_providers_export_ui_form_parameters($form, $form_state['values']['url'], $form_state['values']['parameters']);

  // Process the form with drupal_process_form(), which calls the submit
  // handlers that puts whatever was worthy of keeping in the $form_state.
  drupal_process_form($form_id, $form, $form_state);
  unset($form['provider']['parameters']['#prefix'], $form['provider']['parameters']['#suffix']);
  $output = drupal_render($form['provider']['parameters']);
  $javascript = drupal_add_js(NULL, NULL);
  if (isset($javascript['setting'])) {
    $output .= '<script type="text/javascript">jQuery.extend(Drupal.settings, ' . drupal_to_js(call_user_func_array('array_merge_recursive', $javascript['setting'])) . ');</script>';
  }
  return $output;
}