You are here

function _uniqueness_widget_store in Uniqueness 7

Same name and namespace in other branches
  1. 6 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_view in ./uniqueness.module
Implements hook_block_view().
uniqueness_form_alter in ./uniqueness.module
Implements hook_form_alter().

File

./uniqueness.module, line 239
uniqueness.module

Code

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