You are here

function wikitools_type_affected in Wikitools 5

Same name and namespace in other branches
  1. 6.2 wikitools.module \wikitools_type_affected()
  2. 6 wikitools.module \wikitools_type_affected()
  3. 7 wikitools.module \wikitools_type_affected()

Is node type affected by wikitool options?

6 calls to wikitools_type_affected()
wikitools_delete_protection_delete_confirm in ./wikitools.module
Callback of node delete action in protected mode.
wikitools_form_alter in ./wikitools.module
Implementation of hook_form_alter().
wikitools_handle_request in ./wikitools.module
Menu callback for wiki path. This function is called if a page without an alias is called below the wiki path.
wikitools_menu in ./wikitools.module
Implementation of hook_menu().
wikitools_node_validate in ./wikitools.module
Validate check of node edit form.

... See full list

File

./wikitools.module, line 330
A non-intrusive module to have some wiki-like behaviour.

Code

function wikitools_type_affected($type) {
  static $node_types = NULL;
  if (is_null($node_types)) {
    $node_types = wikitools_node_types();
  }
  return isset($node_types[$type]) && $node_types[$type];
}