Tripal
Functions
tripal_chado.custom_tables.inc File Reference

Functions

 tripal_custom_table_admin_view ()
 
 tripal_custom_table_new_page ()
 
 tripal_custom_table_view ($table_id)
 
 tripal_custom_tables_form ($form, &$form_state=NULL, $table_id=NULL)
 
 tripal_custom_tables_form_validate ($form, &$form_state)
 
 tripal_custom_tables_form_submit ($form, &$form_state)
 
 tripal_custom_tables_delete_form ($form, &$form_state, $table_id)
 
 tripal_custom_tables_delete_form_submit ($form, &$form_state)
 

Detailed Description

Contains functions for creating, editing and deleting custom tables on the Tripal website.

Function Documentation

◆ tripal_custom_table_admin_view()

tripal_custom_table_admin_view ( )

Provides a landing page for administrating custom tables.

◆ tripal_custom_table_new_page()

tripal_custom_table_new_page ( )

Renders the tripal_custom_tables_form.

◆ tripal_custom_table_view()

tripal_custom_table_view (   $table_id)

A template function which returns markup to display details for the custom table

Parameters
$table_idThe unique ID of the custom table

◆ tripal_custom_tables_delete_form()

tripal_custom_tables_delete_form (   $form,
$form_state,
  $table_id 
)

Just a simple form for confirming deletion of a custom table

◆ tripal_custom_tables_delete_form_submit()

tripal_custom_tables_delete_form_submit (   $form,
$form_state 
)

form submit hook for the tripal_custom_tables_delete_form form.

Parameters
$form
$form_state

◆ tripal_custom_tables_form()

tripal_custom_tables_form (   $form,
$form_state = NULL,
  $table_id = NULL 
)

A Form to Create/Edit a Custom table.

Parameters
$form_stateThe current state of the form (Form API)
$table_idThe unique ID of the Custom table to Edit or NULL if creating a new table
Returns
A form array (Form API)

◆ tripal_custom_tables_form_submit()

tripal_custom_tables_form_submit (   $form,
$form_state 
)

Submit the Create/Edit Custom table form Implements hook_form_submit().

◆ tripal_custom_tables_form_validate()

tripal_custom_tables_form_validate (   $form,
$form_state 
)

Implements hook_validate(). Validate the Create/Edit custom table form.