You are here

function wikitools_type_affected in Wikitools 7

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

Is node type affected by wikitool options?

4 calls to wikitools_type_affected()
wikitools_form_node_form_alter in ./wikitools.module
Implements hook_form_FORM_ID_alter().
wikitools_handle_request in ./wikitools.pages.inc
Menu callback for wiki path. This function is called if a page without an alias is called below the wiki path.
wikitools_node_validate in ./wikitools.module
Validate check of node edit form.
wikitools_wikilink_drupal_path in ./wikitools.module
Build a Drupal path to link to a page.

File

./wikitools.module, line 119
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];
}