You are here

class Notifications_Taxonomy_Vocabulary in Notifications 7

Taxonomy vocabulary object

Hierarchy

Expanded class hierarchy of Notifications_Taxonomy_Vocabulary

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

File

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

View source
class Notifications_Taxonomy_Vocabulary extends Notifications_Object {
  public $type = 'taxonomy_vocabulary';

  /**
   * Title
   */
  public function get_title() {
    return t('Vocabulary');
  }

  /**
   * Token type
   */
  public function get_token_type() {
    return 'vocabulary';
  }

  /**
   * Load object
   */
  public static function object_load($value) {
    return taxonomy_vocabulary_load($value);
  }

  /**
   * Get name for object
   */
  public static function object_name($vocabulary) {
    return $vocabulary->name;
  }

  /**
   * Get value for object
   */
  public static function object_value($vocabulary) {
    return $vocabulary->vid;
  }

}

Members