Checks whether a node can be used in a forum, based on its content type.
$node: A node object.
Boolean indicating if the node can be assigned to a forum.
function _forum_node_check_node_type($node) {
// Fetch information about the forum field.
$field = field_info_instance('node', 'taxonomy_forums', $node->type);
return is_array($field);
}