forum_node_validate
function forum_node_validate
forum_node_validate($node, $form)
Implements hook_node_validate().
Checks in particular that the node is assigned only a "leaf" term in the forum taxonomy.
File
- modules/forum/forum.module, line 291
- Provides discussion forums.
Code
function forum_node_validate($node, $form) { if (_forum_node_check_node_type($node)) { $langcode = $form['taxonomy_forums']['#language']; // vocabulary is selected, not a "container" term. if (!empty($node->taxonomy_forums[$langcode])) { // Extract the node's proper topic ID. $containers = variable_get('fo