You are here

function _fe_block_get_active_themes in Features Extra 7

Returns a list of machine names of active themes.

Return value

array An array of theme machine names.

2 calls to _fe_block_get_active_themes()
fe_block_settings_features_export_render in fe_block/fe_block.module
Implements hook_features_export_render().
fe_block_settings_features_revert in fe_block/fe_block.module
Implements hook_features_revert().

File

fe_block/fe_block.module, line 407
Provide features components for exporting core blocks and settings.

Code

function _fe_block_get_active_themes() {
  $theme_names = array();
  foreach (system_list('theme') as $machine_name => $theme) {
    if (!empty($theme->status)) {
      $theme_names[] = $machine_name;
    }
  }
  sort($theme_names);
  return $theme_names;
}