You are here

class views_handler_filter_block_theme in Views Hacks 6

Same name and namespace in other branches
  1. 7 views_block/handlers/views_handler_filter_block_theme.inc \views_handler_filter_block_theme

Filter based on block theme.

Hierarchy

Expanded class hierarchy of views_handler_filter_block_theme

1 string reference to 'views_handler_filter_block_theme'
views_block_views_data in views_block/views_block.views.inc
Implementation of hook_views_data()

File

views_block/handlers/views_handler_filter_block_theme.inc, line 6

View source
class views_handler_filter_block_theme extends views_handler_filter_in_operator {
  function get_value_options() {
    foreach (list_themes() as $key => $theme) {
      $this->value_options[$key] = $theme->name;
    }
    ksort($this->value_options);
    $this->value_options = array(
      '***CURRENT_THEME***' => t('***CURRENT_THEME***'),
    ) + $this->value_options;
  }

}

Members