function mobile_switch_get_themes in Mobile Switch 7.2
Same name and namespace in other branches
- 6 mobile_switch.module \mobile_switch_get_themes()
- 7 mobile_switch.module \mobile_switch_get_themes()
Helper function to determine the active themes.
See also
1 call to mobile_switch_get_themes()
- mobile_switch_settings_form in includes/
mobile_switch.admin.inc - Form constructor for the Basic settings form.
File
- ./
mobile_switch.module, line 728 - Provides various functionalities to develop mobile ready websites.
Code
function mobile_switch_get_themes() {
$themes = array();
foreach (list_themes() as $name => $value) {
if ($value->status == 0) {
continue;
}
$themes[$name] = preg_replace('/_/', ' ', ucfirst($value->name));
}
return $themes;
}