function quotes_update in Quotes 6
Same name and namespace in other branches
- 5 quotes.module \quotes_update()
- 7 quotes.module \quotes_update()
Implementation of hook_update().
File
- ./
quotes.module, line 474 - The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.
Code
function quotes_update($node) {
$aid = _quotes_handle_author($node->quotes_author);
if ($node->revision) {
quotes_insert($node);
}
else {
db_query("UPDATE {quotes} SET aid='%d', citation='%s', promote=%d WHERE nid=%d AND vid=%d", $aid, $node->quotes_citation, $node->quotes_promote, $node->nid, $node->vid);
}
}