Tripal
|
Functions | |
tripal_library_node_info () | |
chado_library_form ($node, &$form_state) | |
chado_library_validate ($node, $form, &$form_state) | |
chado_library_insert ($node) | |
chado_library_update ($node) | |
chado_library_load ($nodes) | |
chado_library_delete (&$node) | |
tripal_library_node_access ($node, $op, $account) | |
tripal_library_node_view ($node, $view_mode, $langcode) | |
tripal_library_node_presave ($node) | |
tripal_library_node_insert ($node) | |
tripal_library_node_update ($node) | |
chado_library_chado_node_default_title_format () | |
chado_library_chado_node_default_url_format () | |
Implements the library node content type
chado_library_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 library nodes based on chado fields.
chado_library_chado_node_default_url_format | ( | ) |
Implements hook_chado_node_default_url_format().
Designates a default URL format for library nodes.
chado_library_delete | ( | & | $node | ) |
Implements hook_delete().
Delete data from drupal and chado databases when a node is deleted
chado_library_form | ( | $node, | |
& | $form_state | ||
) |
Implements hook_form().
When editing or creating a new node of type 'chado_library' we need a form. This function creates the form that will be used for this.
chado_library_insert | ( | $node | ) |
Implements hook_insert().
When a new chado_library node is created we also need to add information to our chado_library table. This function is called on insert of a new node of type 'chado_library' and inserts the necessary information.
chado_library_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_library_update | ( | $node | ) |
Implements hook_update().
chado_library_validate | ( | $node, | |
$form, | |||
& | $form_state | ||
) |
Implements hook_validate().
Validates submission of form when adding or updating a library node
tripal_library_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_library_node_info | ( | ) |
Implements hook_node_info().
Provide information to drupal about the node types that we're creating in this module
tripal_library_node_insert | ( | $node | ) |
Implements hook_node_insert(). Acts on all content types.
tripal_library_node_presave | ( | $node | ) |
Implements hook_node_presave(). Acts on all node content types.
tripal_library_node_update | ( | $node | ) |
Implements hook_node_update(). Acts on all content types.
tripal_library_node_view | ( | $node, | |
$view_mode, | |||
$langcode | |||
) |
Implements hook_node_view(). Acts on all content types