You are here

class Notifications_Taxonomy_Vocabulary_Subscription in Notifications 7

Hierarchy

Expanded class hierarchy of Notifications_Taxonomy_Vocabulary_Subscription

1 string reference to 'Notifications_Taxonomy_Vocabulary_Subscription'
notifications_tags_notifications in notifications_tags/notifications_tags.module
Implementation of hook_notifications().

File

notifications_tags/notifications_tags.inc, line 100
Drupal Notifications Framework - Default class file

View source
class Notifications_Taxonomy_Vocabulary_Subscription extends Notifications_Subscription_Simple {

  /**
   * Get proper name
   */
  public function get_name() {
    if (isset($this->name)) {
      return $this->name;
    }
    elseif ($vocabulary = $this
      ->get_field('vocabulary:vid')
      ->drupal_object()) {
      return t('Terms in @name', array(
        '@name' => $vocabulary->name,
      ));
    }
    else {
      parent::get_name();
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Notifications_Subscription_Simple::get_field function In this case we can get fields by type or by position
Notifications_Taxonomy_Vocabulary_Subscription::get_name public function Get proper name