You are here

function wikitools_options in Wikitools 5

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

Various wikitool options.

9 calls to wikitools_options()
wikitools_admin_settings in ./wikitools.module
Builder function for settings form.
wikitools_auto_redirect in ./wikitools.module
Is automatic redirection activated?
wikitools_delete_protection in ./wikitools.module
Is delete protection activated?
wikitools_enforce_unique_titles in ./wikitools.module
Are unique titles enforced?
wikitools_move_protection in ./wikitools.module
Is move protection activated?

... See full list

File

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

Code

function wikitools_options($value = NULL) {
  if (is_null($value)) {
    return variable_get('wikitools_options', array(
      'node creation',
      'node search',
      'unique titles',
      'underscore as space',
    ));
  }
  return variable_set('wikitools_options', $value);
}