function _css_injector_get_themes in CSS Injector 7
Return list of available themes.
2 calls to _css_injector_get_themes()
- css_injector_admin in ./
css_injector.module - Implements hook_admin().
- css_injector_edit in ./
css_injector.admin.inc - Form builder function for the CSS rule edit form.
File
- ./
css_injector.module, line 309 - Allows administrators to inject CSS into the page output based on configurable rules. Useful for adding simple CSS tweaks without modifying a site's official theme.
Code
function _css_injector_get_themes() {
$themes = array();
$theme_list = list_themes();
foreach ($theme_list as $single_theme) {
//
if ($single_theme->status && file_exists($single_theme->filename)) {
$themes[$single_theme->name] = $single_theme->info['name'];
}
}
return $themes;
}