You are here

function omega_tools_base_themes in Omega Tools 7.3

@todo

3 calls to omega_tools_base_themes()
drush_omega_tools_omega_subtheme_validate in includes/omega_tools.drush.inc
Implements of drush_hook_COMMAND_validate().
omega_tools_starterkits in ./omega_tools.module
@todo
omega_tools_subtheme_add in includes/omega_tools.admin.inc
@todo

File

./omega_tools.module, line 219

Code

function omega_tools_base_themes() {
  $themes = list_themes();
  $options = array();
  foreach (array(
    'alpha',
    'omega',
  ) as $theme) {
    if (isset($themes[$theme])) {
      $options[$theme] = $themes[$theme]->info['name'];
    }
  }
  foreach ($themes as $theme) {
    if (isset($theme->info['base theme']) && empty($theme->info['starterkit'])) {
      $base = system_find_base_themes($themes, $theme->name);
      if (isset($base['alpha'])) {
        $options[$theme->name] = $theme->info['name'];
      }
    }
  }
  return $options;
}