You are here

scald_views_handler_filter_atom_type.inc in Scald: Media Management made easy 6

Same filename and directory in other branches
  1. 7 includes/scald_views_handler_filter_atom_type.inc

File

includes/scald_views_handler_filter_atom_type.inc
View source
<?php

/**
 * Filter by node type
 */
class scald_views_handler_filter_atom_type extends views_handler_filter_in_operator {
  function get_value_options() {
    if (!isset($this->value_options)) {
      $this->value_title = t('Atom type');

      //$types = node_get_types();
      $types = _scald_types();
      foreach ($types as $type => $info) {
        $options[$type] = t($info['title']);
      }
      $this->value_options = $options;
    }
  }

}

Classes

Namesort descending Description
scald_views_handler_filter_atom_type Filter by node type