function chado_library_load

2.x tripal_library.chado_node.inc chado_library_load($nodes)
3.x tripal_library.chado_node.inc chado_library_load($nodes)
1.x tripal_library.module chado_library_load($node)

When a node is requested by the user this function is called to allow us to add auxiliary data to the node object.

Related topics

File

tripal_library/tripal_library.module, line 638

Code

function chado_library_load($node) {
  // get the feature details from chado
  $library_id = chado_get_id_for_node('library', $node);

  $values = array('library_id' => $library_id);
  $library = tripal_core_generate_chado_var('library', $values);

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

}