function biblio_update in Bibliography Module 6
Same name and namespace in other branches
- 5 biblio.module \biblio_update()
- 6.2 biblio.module \biblio_update()
- 7 biblio.module \biblio_update()
- 7.2 biblio.module \biblio_update()
Implementation of hook_update().
As an existing node is being updated in the database, we need to do our own database updates.
File
- ./
biblio.module, line 1708
Code
function biblio_update($node) {
require_once drupal_get_path('module', 'biblio') . '/biblio.keywords.inc';
_biblio_prepare_submit($node);
// Update the node in the database:
if ($node->revision) {
drupal_write_record('biblio', $node);
}
else {
drupal_write_record('biblio', $node, 'vid');
}
biblio_update_contributors($node);
biblio_update_keywords($node);
}