function notifications_views_handler_filter_subscription_type::get_value_options 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::get_value_options()
- 6 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type::get_value_options()
- 6.3 notifications_views/notifications_views_handler_filter_subscription_type.inc \notifications_views_handler_filter_subscription_type::get_value_options()
- 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;
}
}