You are here

function example_load in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_load()

Implementation of hook_load().

Use case 1: returns object directly.

File

coder_upgrade/tests/old/samples/example.module, line 2546

Code

function example_load($node) {
  return db_fetch_object(db_query('SELECT * FROM {mytable} WHERE vid = %d', $node->vid));
}