You are here

class notifications_views_handler_filter_subscription_type in Notifications 6

Same name and namespace in other branches
  1. 6.4 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type
  2. 6.2 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type
  3. 6.3 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type
  4. 7 notifications_views/includes/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type

Filter by node type

Hierarchy

Expanded class hierarchy of notifications_views_handler_filter_subscription_type

File

notifications_views/notifications_views_handler_filter_subscription_type.inc, line 5

View source
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_types();
      $options = array();
      foreach ($subtypes as $type => $info) {
        $options[$type] = $info['title'];
      }
      $this->value_options = $options;
    }
  }

}

Members