You are here

function _uniqueness_widget_store in Uniqueness 6

Same name and namespace in other branches
  1. 7 uniqueness.module \_uniqueness_widget_store()

Helper function saves and returns the current content type and operation.

Needed because both the content type and nid of the node are not known when the block is built.

Parameters

$options: If set, saves this array.

Return value

The previously saved array, or NULL

2 calls to _uniqueness_widget_store()
uniqueness_block in ./uniqueness.module
Implementation of hook_block().
uniqueness_form_alter in ./uniqueness.module
Implementation of hook_form_alter().

File

./uniqueness.module, line 194
uniqueness.module

Code

function _uniqueness_widget_store($options = NULL) {
  static $saved_options = NULL;
  if ($options !== NULL) {
    $saved_options = $options;
  }
  return $saved_options;
}