Tripal
|
Functions | |
tripal_featuremap_node_info () | |
chado_featuremap_form ($node, &$form_state) | |
chado_featuremap_validate ($node, $form, &$form_state) | |
tripal_featuremap_node_access ($node, $op, $account) | |
chado_featuremap_insert ($node) | |
chado_featuremap_update ($node) | |
chado_featuremap_load ($nodes) | |
chado_featuremap_delete (&$node) | |
tripal_featuremap_node_presave ($node) | |
tripal_featuremap_node_view ($node, $view_mode, $langcode) | |
tripal_featuremap_node_insert ($node) | |
tripal_featuremap_node_update ($node) | |
chado_featuremap_chado_node_default_title_format () | |
chado_featuremap_chado_node_default_url_format () | |
Hooks implementing the feature map node content type
chado_featuremap_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 featuremap nodes based on chado fields.
chado_featuremap_chado_node_default_url_format | ( | ) |
Implements hook_chado_node_default_url_format().
Designates a default URL format for featuremap nodes.
chado_featuremap_delete | ( | & | $node | ) |
Implements hook_delete().
Delete data from drupal and chado databases when a node is deleted
chado_featuremap_form | ( | $node, | |
& | $form_state | ||
) |
When editing or creating a new node of type 'chado_featuremap' we need a form. This function creates the form that will be used for this.
chado_featuremap_insert | ( | $node | ) |
Implements hook_insert().
When a new chado_featuremap node is created we also need to add information to our chado_featuremap table. This function is called on insert of a new node of type 'chado_featuremap' and inserts the necessary information.
chado_featuremap_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_featuremap_update | ( | $node | ) |
Implements hook_update(). Update nodes
chado_featuremap_validate | ( | $node, | |
$form, | |||
& | $form_state | ||
) |
Validates submission of form when adding or updating a map node
tripal_featuremap_node_access | ( | $node, | |
$op, | |||
$account | |||
) |
Implement hook_node_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_featuremap_node_info | ( | ) |
Implements hook_node_info().
Provide information to drupal about the node types that we're creating in this module
tripal_featuremap_node_insert | ( | $node | ) |
Implements hook_node_insert(). Acts on all content types.
tripal_featuremap_node_presave | ( | $node | ) |
Implements hook_node_presave(). Acts on all content types.
tripal_featuremap_node_update | ( | $node | ) |
Implements hook_node_update(). Acts on all content types.
tripal_featuremap_node_view | ( | $node, | |
$view_mode, | |||
$langcode | |||
) |
Implements hook_node_view(). Acts on all content types.