You are here

function mobile_tools_list_theme_names in Mobile Tools 6.3

Same name and namespace in other branches
  1. 5 mobile_tools.module \mobile_tools_list_theme_names()
  2. 6 mobile_tools.admin.inc \mobile_tools_list_theme_names()
  3. 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 255
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);
  }
}