function express_theme_picker_config in Express Theme Picker 7
Page callback for admin/theme/config/%.
1 string reference to 'express_theme_picker_config'
- express_theme_picker_menu in ./
express_theme_picker.module - Implements hook_menu().
File
- ./
express_theme_picker.module, line 91
Code
function express_theme_picker_config($theme) {
global $base_url;
// Get enabled themes so we can get a theme name
foreach (list_themes() as $key => $value) {
$options[$key] = $value->info['name'];
}
ctools_include('system.admin', 'system', '');
$output['heading']['#markup'] = '<h2>' . $options[$theme] . ' Theme Configuration</h2>';
$output['screenshot']['#markup'] = '<img src="' . $base_url . '/' . drupal_get_path('theme', $theme) . '/screenshot.png" class="theme-screenshot" />';
$output['settings'] = drupal_get_form('system_theme_settings', $theme);
return $output;
}