You are here

protected function Notifications_Subscription::get_link_text in Notifications 7

Get subscribe / unsubscribe text for this

1 call to Notifications_Subscription::get_link_text()
Notifications_Subscription::element_link in ./notifications.subscription.inc
Get link element

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

protected function get_link_text($type, $options = array()) {
  switch ($type) {
    case 'subscribe':
      return t('Subscribe to: @name', array(
        '@name' => $this
          ->get_name(),
      ));
    case 'unsubscribe':
      return t('Unsubscribe from: @name', array(
        '@name' => $this
          ->get_name(),
      ));
    default:
      return parent::get_link_text($type);
  }
}