function mobile_tools_list_theme_names in Mobile Tools 6
Same name and namespace in other branches
- 5 mobile_tools.module \mobile_tools_list_theme_names()
- 6.3 mobile_tools.admin.inc \mobile_tools_list_theme_names()
- 7.2 mobile_tools.admin.inc \mobile_tools_list_theme_names()
Function returning the available themes
1 call to mobile_tools_list_theme_names()
- mobile_tools_themes_configuration_form in ./
mobile_tools.admin.inc - Configuration form for configuring the mobile context in the theming system
File
- ./
mobile_tools.admin.inc, line 234 - Adminstrative pages for Mobile Tools
Code
function mobile_tools_list_theme_names() {
global $conf;
$themes = list_themes();
$list = array();
foreach ($themes as $key => $value) {
if ($value->status == 1) {
$list[] = $key;
}
}
if (count($list) == 0) {
return array();
}
else {
return array_combine($list, $list);
}
}