You are here

function notifications_views_handler_argument_subscription_type::subscription_type in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_views/notifications_views_handler_argument_subscription_type.inc \notifications_views_handler_argument_subscription_type::subscription_type()
  2. 6.2 notifications_views/notifications_views_handler_argument_subscription_type.inc \notifications_views_handler_argument_subscription_type::subscription_type()
  3. 6.3 notifications_views/notifications_views_handler_argument_subscription_type.inc \notifications_views_handler_argument_subscription_type::subscription_type()
2 calls to notifications_views_handler_argument_subscription_type::subscription_type()
notifications_views_handler_argument_subscription_type::summary_name in notifications_views/notifications_views_handler_argument_subscription_type.inc
Override the behavior of summary_name(). Get the user friendly version of the subscription type.
notifications_views_handler_argument_subscription_type::title in notifications_views/notifications_views_handler_argument_subscription_type.inc
Override the behavior of title(). Get the user friendly version of the node type.

File

notifications_views/notifications_views_handler_argument_subscription_type.inc, line 26

Class

notifications_views_handler_argument_subscription_type
Argument handler to accept a subscription type.

Code

function subscription_type($type) {
  $output = notifications_subscription_types($type);
  $output = $type['title'];
  if (empty($output)) {
    $output = t('Unknown');
  }
  return check_plain($output);
}