function chado_project_load

2.x tripal_project.chado_node.inc chado_project_load($nodes)
3.x tripal_project.chado_node.inc chado_project_load($nodes)
1.x tripal_project.module chado_project_load($node)

Implementation of node_load().

Parameters

$node: The node that is to have its containing information loaded

Return value

$node The node, containing the loaded project with the current nid

Related topics

File

tripal_project/tripal_project.module, line 409
This file contains the basic functions needed for this drupal module. The drupal tripal_project module maps directly to the chado general module.

Code

function chado_project_load($node) {

  // get the feature details from chado
  $project_id = chado_get_id_for_node('project', $node);

  $values = array('project_id' => $project_id);
  $project = tripal_core_generate_chado_var('project', $values);

  $additions = new stdClass();
  $additions->project = $project;
  return $additions;

}