You are here

function _ddblock_get_variable in Dynamic display block 6

Return a persistent variable.

Parameters

$name: The name of the variable to return.

$default: The default value to use if this variable has never been set.

Return value

The value of the variable.

3 calls to _ddblock_get_variable()
ddblock_block_configure in ./ddblock.module
Block configuration page of dynamic display block blocks added to standard block configuration page.
ddblock_content in ./ddblock.module
Get contents of dynamic display block block.
ddblock_form_alter in ./ddblock.module
Implementation of hook_form_alter().

File

./ddblock.module, line 2012
Enables your site to display dynamic content in a block.

Code

function _ddblock_get_variable($array, $key, $default) {
  return isset($array[$key]) ? $array[$key] : $default;
}