Tripal
Functions
tripal_chado_views_integration_UI.inc File Reference

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)
 

Detailed Description

Functions related to the UI for integrating tables with views

Function Documentation

◆ tripal_chado_views_integration_ajax_new_join_left_field_callback()

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()

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.

Parameters
$setup_idthe unique setup id for the integrated table

◆ tripal_chado_views_integration_delete_all_form()

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()

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()

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.

Returns
Returns an array of handler names

◆ tripal_chado_views_integration_form()

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.

Parameters
$formThe form array which is passed automatically by drupal
$form_stateThe form state which is passed automatically by drupal
Returns
A proper Drupal form associative array.

D7

Todo:

: 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()

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.

Parameters
$formThe form object which is passed automatically by drupal
$form_stateThe form state pbject which is passed automatically by drupal

◆ tripal_chado_views_integration_form_validate()

tripal_chado_views_integration_form_validate (   $form,
$form_state 
)

Purpose: validates the tripal_chado_views_integration_form after submission

Parameters
$formThe form object which is passed automatically by drupal
$form_stateThe form state pbject which is passed automatically by drupal

◆ tripal_chado_views_integration_setup_list()

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.

Returns
a themed HTML table