function tripal_library_node_update

2.x tripal_library.chado_node.inc tripal_library_node_update($node)
3.x tripal_library.chado_node.inc tripal_library_node_update($node)

Implements hook_node_update(). Acts on all content types.

Related topics

File

legacy/tripal_library/includes/tripal_library.chado_node.inc, line 668
Implements the library node content type

Code

function tripal_library_node_update($node) {

  switch ($node->type) {
    case 'chado_library':

      // 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;
  }
}