Tripal
Functions
tripal_project.chado_node.inc File Reference

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 ()
 

Detailed Description

Implement the project node content type

Function Documentation

◆ chado_project_chado_node_default_title_format()

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()

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()

chado_project_delete (   $node)

Implementation of hook_delete().

Parameters
$nodeThe 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()

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

Returns
$form An array as described by the Drupal Form API

◆ chado_project_insert()

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()

chado_project_load (   $nodes)

Implementation of hook_load().

Parameters
$nodeThe node that is to have its containing information loaded

◆ chado_project_update()

chado_project_update (   $node)

Implements hook_update().

Parameters
$nodeThe node which is to have its containing information updated when the user modifies information pertaining to the specific project

◆ chado_project_validate()

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()

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.

Parameters
$nodeThe node on which the operation is to be performed, or, if it does not yet exist, the type of node to be created
$opThe operation to be performed
$accountA user object representing the user for whom the operation is to be performed
Returns
If the permission for the specified operation is not set then return FALSE. If the permission is set then return NULL as this allows other modules to disable access. The only exception is when the $op == 'create'. We will always return TRUE if the permission is set.

◆ tripal_project_node_info()

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()

tripal_project_node_insert (   $node)

Implements hook_node_insert(). Acts on all content types.

◆ tripal_project_node_update()

tripal_project_node_update (   $node)

Implements hook_node_update(). Acts on all content types.

◆ tripal_project_node_view()

tripal_project_node_view (   $node,
  $view_mode,
  $langcode 
)

Implements hook_node_view().