class notifications_views_handler_filter_subscription_type in Notifications 6.2
Same name and namespace in other branches
- 6.4 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type
- 6 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type
- 6.3 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type
- 7 notifications_views/includes/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type
Filter by node type
Hierarchy
- class \notifications_views_handler_filter_subscription_type extends \views_handler_filter_in_operator
Expanded class hierarchy of notifications_views_handler_filter_subscription_type
1 string reference to 'notifications_views_handler_filter_subscription_type'
- notifications_views_views_data in notifications_views/
notifications_views.module - Implementation of hook_views_data().
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;
}
}
}