function biblio_update in Bibliography Module 7
Same name and namespace in other branches
- 5 biblio.module \biblio_update()
- 6.2 biblio.module \biblio_update()
- 6 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 1798 - Bibliography Module for Drupal.
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 (!empty($node->revision)) {
drupal_write_record('biblio', $node);
}
else {
drupal_write_record('biblio', $node, 'vid');
}
}