notifications_views_handler_argument_subscription_type.inc in Notifications 7
File
notifications_views/includes/notifications_views_handler_argument_subscription_type.inc
View source
<?php
class notifications_views_handler_argument_subscription_type extends views_handler_argument {
function construct() {
parent::construct('type');
}
function summary_name($data) {
return $this
->notifications_subscription_type($data->{$this->name_alias});
}
function title() {
return $this
->notifications_subscription_type($this->argument);
}
function notifications_subscription_type($type) {
$output = notifications_subscription_type($type);
$title = isset($output['title']) ? $output['title'] : t('Unknown subscription type');
return check_plain($title);
}
}