You are here

function closeblock_closing_info_get in Close Block 6

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

Get info.

2 calls to closeblock_closing_info_get()
closeblock_closing_info_set in includes/closeblock.api.inc
Set info.
closeblock_initialization in includes/closeblock.api.inc
Load settings

File

includes/closeblock.api.inc, line 150

Code

function closeblock_closing_info_get($params) {
  if (isset($params['uid']) && empty($params['uid'])) {
    return closeblock_closing_info_anonymous_get($params);
  }
  if (empty($params) || !is_array($params)) {
    return;
  }
  $result = closeblock_closing_info_get_db($params);
  $blocks = array();
  if (!empty($result)) {
    foreach ($result as $block) {
      $params = (array) $block;
      $block_id = theme('closeblock_block_id', $params);
      $blocks[$block_id] = $params;
    }
  }
  return $blocks;
}