You are here

notifications_views_handler_filter_subscription_type.inc in Notifications 7

File

notifications_views/includes/notifications_views_handler_filter_subscription_type.inc
View source
<?php

// @TODO: Review/rework this handler.

/**
 * Filter by node type
 */
class notifications_views_handler_filter_subscription_type extends views_handler_filter_in_operator {
  function get_value_options() {
    if (!isset($this->value_options)) {
      $this->value_title = t('Subscription type');
      $subtypes = notifications_subscription_type();
      $options = array();
      foreach ($subtypes as $type => $info) {
        $options[$type] = $info['title'];
      }
      $this->value_options = $options;
    }
  }

}

Classes