function tripal_project_node_update

2.x tripal_project.chado_node.inc tripal_project_node_update($node)
3.x tripal_project.chado_node.inc tripal_project_node_update($node)

Implements hook_node_update(). Acts on all content types.

Related topics

File

legacy/tripal_project/includes/tripal_project.chado_node.inc, line 568
Implement the project node content type

Code

function tripal_project_node_update($node) {

  // add items to other nodes, build index and search results
  switch ($node->type) {
    case 'chado_project':

      // Now get the title
      $node->title = chado_get_node_title($node);

      // Now use the API to set the path.
      chado_set_node_url($node);

      break;
  }
}