You are here

function _chosen_enabled_themes_options in Chosen 7.2

Helper function to get options for enabled themes.

1 call to _chosen_enabled_themes_options()
chosen_admin_settings in ./chosen.admin.inc
Returns with the general configuration form.

File

./chosen.admin.inc, line 142
Chosen administration pages.

Code

function _chosen_enabled_themes_options() {
  $options = array();

  // Get the list of themes.
  $themes = list_themes();
  foreach ($themes as $theme) {

    // Only create options for enabled themes.
    if ($theme->status) {
      $options[$theme->name] = $theme->info['name'];
    }
  }
  return $options;
}