You are here

function wikitools_options in Wikitools 7

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

Various wikitool options.

8 calls to wikitools_options()
wikitools_admin_settings in ./wikitools.admin.inc
Callback for wikitools settings form.
wikitools_auto_redirect in ./wikitools.module
Is automatic redirection activated?
wikitools_enforce_unique_titles in ./wikitools.module
Are unique titles enforced?
wikitools_move_protection in ./wikitools.module
Is move protection activated?
wikitools_node_creation in ./wikitools.module
Is node creation activated?

... See full list

File

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

Code

function wikitools_options() {
  $variable = variable_get('wikitools_options', drupal_map_assoc(array(
    'node creation',
    'node search',
    'unique titles',
    'underscore as space',
  )));
  if (!module_exists('search')) {
    unset($variable['node search']);
  }
  return $variable;
}