function designkit_get_info in DesignKit 6
Same name and namespace in other branches
- 7 designkit.module \designkit_get_info()
Retrieve designkit info for the site's default theme.
3 calls to designkit_get_info()
- designkit_imagecache_default_presets in ./
designkit.module - Implementation of hook_imagecache_default_presets().
- designkit_preprocess_page in ./
designkit.module - Turn design choices into theme variables.
- _designkit_form_alter in ./
designkit.admin.inc - Implementation of hook_form_alter() for spaces_features_form, system_theme_settings.
File
- ./
designkit.module, line 120
Code
function designkit_get_info($reset = FALSE) {
static $info;
if (!isset($info) || $reset) {
global $theme_key, $theme_info;
if (isset($theme_info, $theme_key) && $theme_key == variable_get('theme_default', 'garland')) {
$info = $theme_info->info;
}
else {
$default = variable_get('theme_default', 'garland');
$result = db_query("SELECT name,type,info FROM {system} WHERE type = 'theme' AND name = '%s'", $default);
while ($row = db_fetch_object($result)) {
$info = unserialize($row->info);
}
}
}
return isset($info) ? $info : FALSE;
}