function tripal_ajax_db_edit
1.x tripal_db.admin.inc | tripal_ajax_db_edit() |
Related topics
1 string reference to 'tripal_ajax_db_edit'
- tripal_db_menu in tripal_db/
tripal_db.module
File
- tripal_db/
includes/ tripal_db.admin.inc, line 26
Code
function tripal_ajax_db_edit() {
$status = TRUE;
// prepare and render the form
$form = tripal_core_ahah_prepare_form();
$data = drupal_render($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,
)
);
}