function geshinode_update in GeSHi Filter for syntax highlighting 5.2
Same name and namespace in other branches
- 6 geshinode.module \geshinode_update()
Implementation of hook_update().
File
- ./
geshinode.module, line 114
Code
function geshinode_update($node) {
if ($node->revision) {
geshinode_insert($node);
}
else {
db_query("UPDATE {geshinode} SET language = '%s' WHERE vid=%d", $node->language, $node->vid);
}
}