function context_condition_theme::condition_values

cis7 context_condition_theme.inc context_condition_theme::condition_values()
cle7 context_condition_theme.inc context_condition_theme::condition_values()
elmsmedia7 context_condition_theme.inc context_condition_theme::condition_values()
icor7 context_condition_theme.inc context_condition_theme::condition_values()
meedjum_blog7 context_condition_theme.inc context_condition_theme::condition_values()
mooc7 context_condition_theme.inc context_condition_theme::condition_values()

Override of condition_values().

Overrides context_condition::condition_values

File

sites/all/modules/ulmus/context_condition_theme/plugins/context_condition_theme.inc, line 11

Class

context_condition_theme
Expose themes as a context condition.

Code

function condition_values() {
  $values = array();

  foreach (list_themes() as $theme) {
    if ($theme->status) {
      $values[$theme->name] = $theme->info['name'];
    }
  }
  return $values;
}