|
Tripal
|
Functions | |
| tripal_project_node_info () | |
| chado_project_form (&$node, $form_state) | |
| chado_project_validate ($node, $form, &$form_state) | |
| chado_project_insert ($node) | |
| chado_project_delete ($node) | |
| chado_project_update ($node) | |
| chado_project_load ($nodes) | |
| tripal_project_node_access ($node, $op, $account) | |
| tripal_project_node_view ($node, $view_mode, $langcode) | |
| tripal_project_node_insert ($node) | |
| tripal_project_node_update ($node) | |
| chado_project_chado_node_default_title_format () | |
| chado_project_chado_node_default_url_format () | |
Implement the project node content type
| chado_project_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 project nodes based on chado fields.
| chado_project_chado_node_default_url_format | ( | ) |
Implements hook_chado_node_default_url_format().
Designates a default URL format for project nodes.
| chado_project_delete | ( | $node | ) |
Implementation of hook_delete().
| $node | The node which is to be deleted, only chado project and chado_project need to be dealt with since the drupal node is deleted automagically |
| chado_project_form | ( | & | $node, |
| $form_state | |||
| ) |
Implementation of hook_form().
This form takes the Project Title information and description from the user.
@parm $node The initialized node
@parm $form_state The state of the form, that has the user entered information that is neccessary for adding information to the project
| chado_project_insert | ( | $node | ) |
Implementation of hook_insert().
@parm $node Then node that has the information stored within, accessed given the nid
| chado_project_load | ( | $nodes | ) |
Implementation of hook_load().
| $node | The node that is to have its containing information loaded |
| chado_project_update | ( | $node | ) |
Implements hook_update().
| $node | The node which is to have its containing information updated when the user modifies information pertaining to the specific project |
| chado_project_validate | ( | $node, | |
| $form, | |||
| & | $form_state | ||
| ) |
Implements hook_validate(). Validates submission of form when adding or updating a project node
| tripal_project_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_project_node_info | ( | ) |
Implementation of hook_node_info().
This node_info, is a simple node that describes the functionallity of the module. It specifies that the title(Project Name) and body(Description) set to true so that they information can be entered
| tripal_project_node_insert | ( | $node | ) |
Implements hook_node_insert(). Acts on all content types.
| tripal_project_node_update | ( | $node | ) |
Implements hook_node_update(). Acts on all content types.
| tripal_project_node_view | ( | $node, | |
| $view_mode, | |||
| $langcode | |||
| ) |
Implements hook_node_view().