Browse Source

Fixed error in example module

Stephen Ficklin 10 years ago
parent
commit
9cab666d85
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_example/includes/tripal_example.chado_node.inc

+ 2 - 2
tripal_example/includes/tripal_example.chado_node.inc

@@ -614,14 +614,14 @@ function chado_example_load($nodes) {
     // should be included by using this function in the templates.
     $example = chado_expand_var($example, 'field', 'example.description');
 
+    // add the new example object to this node.
+    $nodes[$nid]->example = $example;
 
     // If your module is using the Chado Node: Title & Path API to allow custom
     // titles for your node type. Every time you want the title of the node, you
     // need to use the following API function:
     $node->title = chado_get_node_title($node);
 
-    // add the new example object to this node.
-    $nodes[$nid]->example = $example;
   }
 }