function tripal_stock_node_update
2.x tripal_stock.chado_node.inc | tripal_stock_node_update($node) |
3.x tripal_stock.chado_node.inc | tripal_stock_node_update($node) |
Implements hook_node_update(). Acts on all content types.
Related topics
File
- tripal_stock/
includes/ tripal_stock.chado_node.inc, line 895 - Stock Node Functionality
Code
function tripal_stock_node_update($node) {
// add items to other nodes, build index and search results
switch ($node->type) {
case 'chado_stock':
// Set the Title.
$node->title = chado_get_node_title($node);
// Now use the API to set the path.
chado_set_node_url($node);
break;
}
}