Tripal
Functions
tripal_core.chado_nodes.api.inc File Reference

Functions

 chado_get_id_from_nid ($table, $nid, $linking_table=NULL)
 
 chado_get_nid_from_id ($table, $id, $linking_table=NULL)
 
 chado_node_get_base_table ($content_type, $module=FALSE)
 
 chado_validate_node_form_triggering_element ($form, &$form_state)
 
 chado_add_node_form_subtables_add_button_validate ($form, &$form_state)
 
 chado_add_node_form_subtables_add_button_submit ($form, &$form_state)
 
 chado_add_node_form_subtables_remove_button_validate ($form, &$form_state)
 
 chado_add_node_form_subtables_remove_button_submit ($form, &$form_state)
 
 chado_add_node_form_subtable_ajax_update ($form, &$form_state)
 
 chado_node_sync_form ($form, &$form_state)
 
 chado_node_sync_form_validate ($form, &$form_state)
 
 chado_node_sync_form_submit ($form, $form_state)
 
 chado_node_sync_records ($base_table, $max_sync=FALSE, $organism_id=FALSE, $types=[], $ids=[], $linking_table=FALSE, $node_type=FALSE, $job_id=NULL)
 
 chado_cleanup_orphaned_nodes ($table, $nentries=25000, $linking_table=NULL, $node_type=NULL, $job_id=NULL)
 
 chado_cleanup_orphaned_nodes_part ($table, $job_id=NULL, $nentries, $offset, $linking_table, $node_type)
 
 hook_chado_node_sync_create_new_node ($new_node, $record)
 
 hook_chado_node_sync_form ($form, &$form_state)
 
 hook_chado_node_sync_form_submit ($form, $form_state)
 
 hook_chado_node_sync_select_query ($query)
 

Detailed Description

API to handle much of the common functionality implemented when creating a drupal node type.

Function Documentation

◆ chado_add_node_form_subtable_ajax_update()

chado_add_node_form_subtable_ajax_update (   $form,
$form_state 
)

Ajax function which returns the section of the form to be re-rendered for either the properties, dbxref or relationship sub-sections.

◆ chado_add_node_form_subtables_add_button_submit()

chado_add_node_form_subtables_add_button_submit (   $form,
$form_state 
)

Add subtable entries to the node forms. Supported subtables: Properties, Relationships, Additional DBxrefs.

Parameters
array$form
array$form_state

◆ chado_add_node_form_subtables_add_button_validate()

chado_add_node_form_subtables_add_button_validate (   $form,
$form_state 
)

Validate Adding Subtables entries from the node forms. Supported subtables: Properties, Relationships, Additional DBxrefs.

Parameters
array$form
array$form_state

◆ chado_add_node_form_subtables_remove_button_submit()

chado_add_node_form_subtables_remove_button_submit (   $form,
$form_state 
)

Remove subtable entries to the node forms. Supported subtables: Properties, Relationships, Additional DBxrefs.

Parameters
array$form
array$form_state

◆ chado_add_node_form_subtables_remove_button_validate()

chado_add_node_form_subtables_remove_button_validate (   $form,
$form_state 
)

Validate Removing Subtables entries from the node forms. Supported subtables: Properties, Relationships, Additional DBxrefs.

Since Removing isn't associated with any user input the only thing we need to validate is that Drupal has determined the triggering element correctly. That said, we will call each subtables associated validate function just incase there is some case-specific validation we do not know of or have not anticipated.

Parameters
array$form
array$form_state

◆ chado_node_sync_form_submit()

chado_node_sync_form_submit (   $form,
  $form_state 
)

Generic Sync Form Submit

◆ chado_node_sync_form_validate()

chado_node_sync_form_validate (   $form,
$form_state 
)

Generic Sync Form Validate

◆ chado_validate_node_form_triggering_element()

chado_validate_node_form_triggering_element (   $form,
$form_state 
)