function views_handler_filter_block_theme::get_value_options in Views Hacks 6
Same name and namespace in other branches
- 7 views_block/handlers/views_handler_filter_block_theme.inc \views_handler_filter_block_theme::get_value_options()
File
- views_block/
handlers/ views_handler_filter_block_theme.inc, line 7
Class
- views_handler_filter_block_theme
- Filter based on block theme.
Code
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;
}