You are here

function geshinode_insert in GeSHi Filter for syntax highlighting 6

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

Implementation of hook_insert().

1 call to geshinode_insert()
geshinode_update in ./geshinode.module
Implementation of hook_update().

File

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

Code

function geshinode_insert($node) {
  db_query("INSERT INTO {geshinode} (nid, vid, language) VALUES (%d, %d, '%s')", $node->nid, $node->vid, $node->source_code_language);
}