nid && $node->book['bid'] && in_array($node->book['bid'], $books)) { return TRUE; } // if this node is categorized with a certain taxonomy term id, use section if ($node->nid && is_array($node->taxonomy) && !empty($node->taxonomy)) { foreach($node->taxonomy as $tid => $term) { if (in_array($term->tid, $tids)) { return TRUE; } } } // else we are not in this section return FALSE; ?> nid && $node->book['bid'] && in_array($node->book['bid'], $books)) { return TRUE; } // if this node is categorized with a certain taxonomy term id, use section if ($node->nid && is_array($node->taxonomy) && !empty($node->taxonomy)) { foreach($node->taxonomy as $tid => $term) { if (in_array($term->tid, $tids)) { return TRUE; } } } // else we are not in this section return FALSE; ?>