You are here

activity_views_handler_filter_type.inc in Activity 6

File

views/activity_views_handler_filter_type.inc
View source
<?php

class activity_views_handler_filter_type extends views_handler_filter_in_operator {
  function get_value_options() {
    $activity_info = activity_get_info();
    $types = array();
    foreach ($activity_info as $module => $info) {
      if ($info['types']) {
        foreach ($info['types'] as $type => $name) {
          $types[$type] = $name;
        }
      }
    }
    if ($types) {
      $this->value_options = $types;
    }
  }

}