function content_theme_get_content_wide_options in Content Theme 7
Same name and namespace in other branches
- 6 content_theme.module \content_theme_get_content_wide_options()
- 7.2 content_theme.module \content_theme_get_content_wide_options()
Helper functions.
1 call to content_theme_get_content_wide_options()
- content_theme_admin_content_wide in ./
content_theme.admin.inc - Menu callback; configures content wide themes.
File
- ./
content_theme.module, line 318 - This module allows to use different themes than the site default on content creating, editing, and viewing pages.
Code
function content_theme_get_content_wide_options() {
static $options = array();
if (!$options) {
$themes = content_theme_get_themes();
$list = variable_get('content_theme_content_wide_list', 'enabled');
$options['0'] = '- ' . t('System default theme') . ' -';
foreach ($themes as $theme => $theme_name) {
$status = content_theme_get_theme_status($theme);
if ($list == 'enabled' && $status || $list == 'all') {
$options[$theme] = $status ? $theme_name : t('!theme (disabled)', array(
'!theme' => $theme_name,
));
}
}
}
return $options;
}