You are here

function _mobile_tools_list_theme_names in Mobile Tools 6.2

Helper function to return a list of 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 242
Generate configuration form and save settings.

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