Tripal
|
Functions | |
tripal_chado_views_integration_setup_list () | |
tripal_chado_views_integration_delete ($setup_id) | |
tripal_chado_views_integration_delete_all_form ($form, &$form_state) | |
tripal_chado_views_integration_delete_all_form_submit ($form, &$form_state) | |
tripal_chado_views_integration_form ($form, &$form_state) | |
tripal_chado_views_integration_form_validate ($form, &$form_state) | |
tripal_chado_views_integration_form_submit ($form, &$form_state) | |
tripal_chado_views_integration_ajax_new_join_left_field_callback ($form, $form_state) | |
tripal_chado_views_integration_discover_handlers () | |
tripal_chado_views_integration_ajax_view_setup_table ($form, $form_state) | |
tripal_chado_views_integration_ajax_join_field ($form, $form_state) | |
Functions related to the UI for integrating tables with views
tripal_chado_views_integration_ajax_new_join_left_field_callback | ( | $form, | |
$form_state | |||
) |
AJAX callback to replace the left field select list in the new join fieldset of the tripal_chado_views_integration_form form
tripal_chado_views_integration_delete | ( | $setup_id | ) |
Purpose: Deletes integration of a table with the Views module. This function is meant to be called from a menu item. After completion it redirects the user to the views intergation page.
$setup_id | the unique setup id for the integrated table |
tripal_chado_views_integration_delete_all_form | ( | $form, | |
& | $form_state | ||
) |
Purpose: Deletes ALL Chado Views Integrations. This function is meant to be called from a menu item. After completion it redirects the user to the views intergation page.
tripal_chado_views_integration_delete_all_form_submit | ( | $form, | |
& | $form_state | ||
) |
Purpose: Deletes ALL Chado Views Integrations. This function is meant to be called from a menu item. After completion it redirects the user to the views intergation page.
tripal_chado_views_integration_discover_handlers | ( | ) |
Purpose: this function queries all modules currently enabled on the site looking for custom handlers and returns a list of all available handerls. The base View handlers are also included.
tripal_chado_views_integration_form | ( | $form, | |
& | $form_state | ||
) |
Purpose: defines the web form used for specifing the base table, joins and handlers when integrating a table with views. This form is used for both creating a new record and editing an existing record.
$form | The form array which is passed automatically by drupal |
$form_state | The form state which is passed automatically by drupal |
D7
: Add ability to manage custom fields D7
: Update relationship handler to work with the new tripal_views_join method
tripal_chado_views_integration_form_submit | ( | $form, | |
& | $form_state | ||
) |
Purpose: inserts or updates the record in the tripal views integration tables. This function is only called if validation is passed.
$form | The form object which is passed automatically by drupal |
$form_state | The form state pbject which is passed automatically by drupal |
tripal_chado_views_integration_form_validate | ( | $form, | |
& | $form_state | ||
) |
Purpose: validates the tripal_chado_views_integration_form after submission
$form | The form object which is passed automatically by drupal |
$form_state | The form state pbject which is passed automatically by drupal |
tripal_chado_views_integration_setup_list | ( | ) |
Purpose: Generates a themable table containing the list of integrated tables The look-and-feel of the table can be altered by overriding the theme for tables.