function closeblock_closing_info_get in Close Block 7
Same name and namespace in other branches
- 6 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 148 - Module settings functions.
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_db_load($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;
}