You are here

function scald_views_handler_filter_atom_type::get_value_options in Scald: Media Management made easy 7

Same name and namespace in other branches
  1. 6 includes/scald_views_handler_filter_atom_type.inc \scald_views_handler_filter_atom_type::get_value_options()

Overrides views_handler_filter_in_operator::get_value_options().

Overrides views_handler_filter_in_operator::get_value_options

File

includes/scald_views_handler_filter_atom_type.inc, line 11
Filter by Scald Atom type.

Class

scald_views_handler_filter_atom_type
@file Filter by Scald Atom type.

Code

function get_value_options() {
  if (!isset($this->value_options)) {
    $this->value_title = t('Atom type');
    $types = scald_types();
    $options = array();
    foreach ($types as $type => $info) {
      $options[$type] = scald_type_property_translate($info);
    }
    $this->value_options = $options;
  }
}