You are here

function notifications_views_handler_filter_subscription_type::get_value_options in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type::get_value_options()
  2. 6.2 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type::get_value_options()
  3. 6.3 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type::get_value_options()
  4. 7 notifications_views/includes/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type::get_value_options()

File

notifications_views/notifications_views_handler_filter_subscription_type.inc, line 6

Class

notifications_views_handler_filter_subscription_type
Filter by node type

Code

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;
  }
}