You are here

function geshinode_update in GeSHi Filter for syntax highlighting 6

Same name and namespace in other branches
  1. 5.2 geshinode.module \geshinode_update()

Implementation of hook_update().

File

./geshinode.module, line 121
Implementation of a GeSHi node.

Code

function geshinode_update($node) {
  if ($node->revision) {
    geshinode_insert($node);
  }
  else {
    db_query("UPDATE {geshinode} SET language = '%s' WHERE vid=%d", $node->source_code_language, $node->vid);
  }
}