You are here

function Notifications_Subscription::format_name in Notifications 7

Same name and namespace in other branches
  1. 6.4 includes/notifications_subscription.class.inc \Notifications_Subscription::format_name()

If the subscription type has a name, like custom subscriptions have, that will be the name Otherwise we build the name using fields and values

2 calls to Notifications_Subscription::format_name()
Notifications_Subscription::format_long in ./notifications.subscription.inc
Format as long text
Notifications_Subscription::format_short in ./notifications.subscription.inc
Format as short text

File

./notifications.subscription.inc, line 1451
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

function format_name($format = self::FORMAT_PLAIN) {
  if ($name = $this
    ->get_name()) {
    return $name;
  }
  else {
    return $this
      ->format_fields($format);
  }
}