function tripal_views_integration_ajax_join_field
2.x tripal_views_integration_UI.inc | tripal_views_integration_ajax_join_field( |
1.x tripal_views_integration.inc | tripal_views_integration_ajax_join_field($field, $join_field) |
1 string reference to 'tripal_views_integration_ajax_join_field'
- tripal_views_menu in tripal_views/
tripal_views.module - Implements hook_menu()
File
- tripal_views/
includes/ tripal_views_integration.inc, line 1092 - Functions related to the UI for integrating tables with views
Code
function tripal_views_integration_ajax_join_field($field, $join_field) {
// prepare and render the form
$form = tripal_core_ahah_prepare_form();
$form = $form['view_setup_table'][$field]['column-3'][$join_field];
$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,
)
);
}