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