function tripal_pub_search_page_update_criteria

1.x pub_search.inc tripal_pub_search_page_update_criteria($action, $i)
1 string reference to 'tripal_pub_search_page_update_criteria'
tripal_pub_menu in tripal_pub/tripal_pub.module
Tripal-Publication-Menu

File

tripal_pub/includes/pub_search.inc, line 384

Code

function tripal_pub_search_page_update_criteria($action, $i) {
  $status = TRUE;

  // prepare and render the form
  $form = tripal_core_ahah_prepare_form();
  $data = theme('tripal_pub_search_form', $form);

  // bind javascript events to the new objects that will be returned
  // so that AHAH enabled elements will work.
  $settings = tripal_core_ahah_bind_events();

  // return the updated JSON
  drupal_json(
  array(
    'status' => $status,
    'data' => $data,
    'settings' => $settings,
  )
  );
}