function biblio_update in Bibliography Module 6.2
Same name and namespace in other branches
- 5 biblio.module \biblio_update()
- 6 biblio.module \biblio_update()
- 7 biblio.module \biblio_update()
- 7.2 biblio.module \biblio_update()
Implements hook_update().
As an existing node is being updated in the database, we need to do our own database updates.
File
- ./
biblio.module, line 1871 - Main file for Drupal module biblio.
Code
function biblio_update($node) {
module_load_include('inc', 'biblio', 'includes/biblio.util');
module_load_include('inc', 'biblio', 'includes/biblio.contributors');
module_load_include('inc', 'biblio', 'includes/biblio.keywords');
_biblio_prepare_submit($node);
biblio_update_contributors($node);
biblio_update_keywords($node);
$node->biblio_coins = biblio_coins($node);
// Update the node in the database:
if ($node->revision) {
drupal_write_record('biblio', $node);
}
else {
drupal_write_record('biblio', $node, 'vid');
}
}