function og_theme_field_allowed_values in Organic groups theme 7
Same name and namespace in other branches
- 7.2 og_theme.module \og_theme_field_allowed_values()
Return all enabled themes.
1 string reference to 'og_theme_field_allowed_values'
- og_theme_og_fields_info in ./
og_theme.module - Implement og_fields_info().
File
- ./
og_theme.module, line 71 - Associate theme to a group.
Code
function og_theme_field_allowed_values() {
$return = array(
'__default' => t('Use site-wide theme definition'),
);
module_load_include('inc', 'system', 'system.admin');
$themes = list_themes();
uasort($themes, 'system_sort_modules_by_info_name');
foreach ($themes as $key => $value) {
if ($value->status) {
$return[$key] = check_plain($value->info['name']);
}
}
return $return;
}