You are here

function flag_lists_handler_filter_template::get_value_options in Flag Lists 6

Same name and namespace in other branches
  1. 7.3 includes/flag_lists_handler_filter_template.inc \flag_lists_handler_filter_template::get_value_options()
  2. 7 includes/flag_lists_handler_filter_template.inc \flag_lists_handler_filter_template::get_value_options()

File

includes/flag_lists_handler_filter_template.inc, line 6

Class

flag_lists_handler_filter_template
Filter by list template

Code

function get_value_options() {
  if (!isset($this->value_options)) {
    $this->value_title = t('List templates');
    $templates = flag_lists_get_templates();
    foreach ($templates as $template) {
      $options[$template->name] = $template->name;
    }
    $this->value_options = $options;
  }
}