function tripal_feature_node_update

2.x tripal_feature.chado_node.inc tripal_feature_node_update($node)
3.x tripal_feature.chado_node.inc tripal_feature_node_update($node)

Implements hook_node_update(). Acts on all content types.

Related topics

File

tripal_feature/includes/tripal_feature.chado_node.inc, line 818
Implementation of hooks to create a feature content type

Code

function tripal_feature_node_update($node) {

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

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

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

      break;
  }
}