You are here

function mobile_tools_list_theme_names in Mobile Tools 5

Same name and namespace in other branches
  1. 6.3 mobile_tools.admin.inc \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.module
Configuration form for configuring the mobile context in the theming system

File

./mobile_tools.module, line 605
Mobile Tools provides a range of functionality assisting in creating a mobile drupal site . this functionality contains:

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);
  }
}