notifications_views_handler_field_subscription_type.inc in Notifications 7
File
notifications_views/includes/notifications_views_handler_field_subscription_type.inc
View source
<?php
class notifications_views_handler_field_subscription_type extends notifications_views_handler_field_machine_name {
function render_name($data, $values) {
if ($this->options['machine_name'] != 1 && $data !== NULL && $data !== '') {
$type = notifications_subscription_type($data);
$name = isset($type['title']) ? $type['title'] : t('Unknown');
return t($this
->sanitize_value($name));
}
return $this
->sanitize_value($data);
}
}