|
Tripal
|
Functions | |
| tripal_analysis_node_info () | |
| chado_analysis_chado_node_sync_form ($form, &$form_state) | |
| chado_analysis_form ($node, &$form_state) | |
| chado_analysis_validate ($node, $form, &$form_state) | |
| tripal_analysis_validate ($node, $form, &$form_state) | |
| chado_analysis_insert ($node) | |
| chado_analysis_delete ($node) | |
| chado_analysis_update ($node) | |
| chado_analysis_load ($nodes) | |
| tripal_analysis_node_access ($node, $op, $account) | |
| tripal_analysis_node_view ($node, $view_mode, $langcode) | |
| tripal_analysis_node_presave ($node) | |
| tripal_analysis_node_insert ($node) | |
| tripal_analysis_node_update ($node) | |
| chado_analysis_chado_node_default_title_format () | |
| chado_analysis_chado_node_default_url_format () | |
Implements Drupal Node hooks to create the chado_analysis node content type.
| chado_analysis_chado_node_default_title_format | ( | ) |
Implements [content_type]_chado_node_default_title_format().
Defines a default title format for the Chado Node API to set the titles on Chado Analysis nodes based on chado fields.
| chado_analysis_chado_node_default_url_format | ( | ) |
Implements hook_chado_node_default_url_format().
Designates a default URL format for analysis nodes.
| chado_analysis_chado_node_sync_form | ( | $form, | |
| & | $form_state | ||
| ) |
Implements hook_chado_node_sync_form()
| chado_analysis_delete | ( | $node | ) |
Implements hook_delete(). Removes analysis from the chado database.
| chado_analysis_form | ( | $node, | |
| & | $form_state | ||
| ) |
Implements hook_form(). When editing or creating a new node of type 'chado_analysis' we need a form. This function creates the form that will be used for this.
| chado_analysis_insert | ( | $node | ) |
Implements hook_insert(). When a new chado_analysis node is created we also need to add information to our chado_analysis table. This function is called on insert of a new node of type 'chado_analysis' and inserts the necessary information.
| chado_analysis_load | ( | $nodes | ) |
Implements hook_load(). When a node is requested by the user this function is called to allow us to add auxiliary data to the node object.
| chado_analysis_update | ( | $node | ) |
Implements hook_update(). Update analyses
| chado_analysis_validate | ( | $node, | |
| $form, | |||
| & | $form_state | ||
| ) |
Implements hook_validate(). Validates the user input before creating an analysis node
| tripal_analysis_node_access | ( | $node, | |
| $op, | |||
| $account | |||
| ) |
Implements hook_access().
This hook allows node modules to limit access to the node types they define.
| $node | The node on which the operation is to be performed, or, if it does not yet exist, the type of node to be created |
| $op | The operation to be performed |
| $account | A user object representing the user for whom the operation is to be performed |
| tripal_analysis_node_info | ( | ) |
Implements hook_node_info().
Provide information to drupal about the node types that we're creating in this module
| tripal_analysis_node_insert | ( | $node | ) |
Implements hook_node_insert(). Acts on all content types.
| tripal_analysis_node_presave | ( | $node | ) |
Implements hook_node_presave(). Called for all node types.
| tripal_analysis_node_update | ( | $node | ) |
Implements hook_node_update(). Acts on all content types.
| tripal_analysis_node_view | ( | $node, | |
| $view_mode, | |||
| $langcode | |||
| ) |
Implements hook_node_view(). Called for all node types.
| tripal_analysis_validate | ( | $node, | |
| $form, | |||
| & | $form_state | ||
| ) |
This validation is being used for three activities: CASE A: Update a node that exists in both drupal and chado CASE B: Synchronizing a node from chado to drupal CASE C: Inserting a new node that exists in niether drupal nor chado