Unless I'm missing something the following is redundant:
function modr8_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
// add messages here..
switch ($op) {
case 'load':
return db_fetch_array(db_query('SELECT n.moderate FROM {node} n WHERE n.nid = %d', $node->nid));
The node_load function already loads the moderate field from the node table because it is listed by the node_schema function.
Comments
Comment #1
pwolanin commentedHmm, well probably I carried it over from D5 where it was not loaded. But looks like you are right for Drupal 6.