_forum_node_check_node_type

7 forum.module _forum_node_check_node_type($node)
8 forum.module _forum_node_check_node_type(Node $node)

Check whether a content type can be used in a forum.

Parameters

$node: A node object.

Return value

Boolean indicating if the node can be assigned to a forum.

11 calls to _forum_node_check_node_type()

File

modules/forum/forum.module, line 253
Provides discussion forums.

Code

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);
}
Login or register to post comments