You are here

function Notifications_Subscription::get_name in Notifications 7

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

Get subscription short name.

Overrides Notifications_Entity::get_name

3 calls to Notifications_Subscription::get_name()
Notifications_Subscription::element_info in ./notifications.subscription.inc
Get subscription form info element
Notifications_Subscription::format_name in ./notifications.subscription.inc
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
Notifications_Subscription::get_link_text in ./notifications.subscription.inc
Get subscribe / unsubscribe text for this

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

function get_name() {
  if (isset($this->name)) {
    return $this->name;
  }
  else {
    return t('!type subscription', array(
      '!type' => $this
        ->get_title(),
    ));
  }
}