function tripal_views_integration_ajax_view_setup_table
2.x tripal_views_integration_UI.inc | tripal_views_integration_ajax_view_setup_table( |
1.x tripal_views_integration.inc | tripal_views_integration_ajax_view_setup_table() |
1 string reference to 'tripal_views_integration_ajax_view_setup_table'
- tripal_views_menu in tripal_views/
tripal_views.module - Implements hook_menu()
File
- tripal_views/
includes/ tripal_views_integration.inc, line 1070 - Functions related to the UI for integrating tables with views
Code
function tripal_views_integration_ajax_view_setup_table() {
// we only want the table row setup fields
$form = tripal_core_ahah_prepare_form();
$form = $form['view_setup_table'];
$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' => TRUE,
'data' => $data,
'settings' => $settings,
)
);
}