You are here

protected function Notifications_Subscription::get_path in Notifications 7

Get path for links

2 calls to Notifications_Subscription::get_path()
Notifications_Subscription::element_link in ./notifications.subscription.inc
Get link element
Notifications_Subscription::get_url in ./notifications.subscription.inc
Get URL for messages (absolute and signed)

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

protected function get_path($operation, $options = array()) {
  $options = $this
    ->get_link_options($operation, $options);
  switch ($operation) {
    case 'subscribe':
    case 'add':
      return $options['base_path'] . '/' . $this->type;
    case 'unsubscribe':
      return $options['base_path'] . '/' . $this->sid;
    default:
      return parent::get_path($operation, $options);
  }
}