You are here

function closeblock_closing_info_anonymous_get in Close Block 7

Same name and namespace in other branches
  1. 6 includes/closeblock.api.inc \closeblock_closing_info_anonymous_get()

Get info for anonymous users.

1 call to closeblock_closing_info_anonymous_get()
closeblock_closing_info_get in includes/closeblock.api.inc
Get info.

File

includes/closeblock.api.inc, line 196
Module settings functions.

Code

function closeblock_closing_info_anonymous_get($params) {
  if (!empty($params['theme']) && !empty($params['module']) && !empty($params['delta'])) {
    $block_id = theme('closeblock_block_id', $params);
    if (!empty($_SESSION['closeblock'][$block_id])) {
      return $_SESSION['closeblock'][$block_id];
    }
  }
  elseif (!empty($_SESSION['closeblock'])) {
    return $_SESSION['closeblock'];
  }
  return array();
}