function Notifications_Subscription::format_name in Notifications 6.4
Same name and namespace in other branches
- 7 notifications.subscription.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
3 calls to Notifications_Subscription::format_name()
- Notifications_Subscription::format_long in includes/
notifications_subscription.class.inc - Format as long text
- Notifications_Subscription::format_short in includes/
notifications_subscription.class.inc - Format as short text
- Notifications_Subscription::get_name in includes/
notifications_subscription.class.inc - Get subscription short name.
File
- includes/
notifications_subscription.class.inc, line 832 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Message destination class
Code
function format_name($format = self::FORMAT_PLAIN) {
if ($name = $this
->get_type('name')) {
return $name;
}
else {
return $this
->format_fields($format);
}
}