condition_used() && !empty($node->book['bid'])) { $type = db_result(db_query("SELECT type FROM {node} WHERE nid = %d", $node->book['bid'])); $book = new stdClass(); $book->type = $type; parent::execute($book, $op); } } }