function closeblock_initialization in Close Block 6
Same name and namespace in other branches
- 7 includes/closeblock.api.inc \closeblock_initialization()
Load settings
1 call to closeblock_initialization()
- closeblock_init in ./
closeblock.module - Implements hook_init().
File
- includes/
closeblock.api.inc, line 22
Code
function closeblock_initialization() {
if (user_access('closeblock')) {
global $theme, $user, $closeblock_blocks, $closeblock_theme_settings;
$current_theme = $theme ? $theme : variable_get('theme_default', 'garland');
$params = array(
'uid' => $user->uid,
'theme' => $current_theme,
);
$closeblock_blocks = closeblock_closing_info_get($params);
//load the settings
$current_theme = $theme ? $theme : variable_get('theme_default', 'garland');
$closeblock_theme_settings = variable_get(str_replace('/', '_', 'theme_' . $current_theme . '_settings'), array());
$closeblock_theme_settings = array_merge(closeblock_default_settings(), $closeblock_theme_settings, array());
}
}