You are here

function closeblock_closing_info_anonymous_get in Close Block 6

Same name and namespace in other branches
  1. 7 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 198

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];
    }
  }
  else {
    if (!empty($_SESSION['closeblock'])) {
      return $_SESSION['closeblock'];
    }
  }
  return array();
}