You are here

function views_handler_filter_block_region::get_value_options in Views Hacks 6

Same name and namespace in other branches
  1. 7 views_block/handlers/views_handler_filter_block_region.inc \views_handler_filter_block_region::get_value_options()

File

views_block/handlers/views_handler_filter_block_region.inc, line 7

Class

views_handler_filter_block_region
Filter based on block region.

Code

function get_value_options() {
  foreach (list_themes() as $key => $theme) {
    foreach (system_region_list($key) as $name => $description) {
      $this->value_options[$name] = $name;
    }
  }
  $this->value_options[''] = '(' . t('none') . ')';
  ksort($this->value_options);
}