You are here

function advanced_forum_type_is_in_forum in Advanced Forum 6.2

Same name and namespace in other branches
  1. 7.2 advanced_forum.module \advanced_forum_type_is_in_forum()

Return whether a given node type is allowed in the whole forum or given forum.

2 calls to advanced_forum_type_is_in_forum()
advanced_forum_form_alter in ./advanced_forum.module
Implementation of hook_form_alter().
advanced_forum_preprocess_page in includes/theme.inc
Preprocesses template variables for the page template.

File

./advanced_forum.module, line 1103
Enables the look and feel of other popular forum software.

Code

function advanced_forum_type_is_in_forum($type, $tid = 0) {
  $forum_types = advanced_forum_allowed_node_types();
  if (in_array($type, $forum_types)) {
    return TRUE;
  }
}