You are here

class Notifications_Node_Type in Notifications 7

Node type object

Hierarchy

Expanded class hierarchy of Notifications_Node_Type

1 string reference to 'Notifications_Node_Type'
notifications_content_notifications in notifications_content/notifications_content.module
Implementation of hook_notifications()

File

notifications_content/notifications_content.inc, line 135
Drupal Notifications Framework - Default class file

View source
class Notifications_Node_Type extends Notifications_Drupal_Object {
  public $type = 'node_type';
  public function get_title() {
    return t('Content type');
  }

  /**
   * Load related object or data
   */
  public static function object_load($value) {
    return node_type_get_type($value);
  }

  /**
   * Get object name, unfiltered string
   */
  public static function object_name($object) {
    return $object->name;
  }

  /**
   * Get object key
   */
  public static function object_value($object) {
    return $object->type;
  }

}

Members