You are here

function Notifications_Subscription::get_type in Notifications 7

Same name and namespace in other branches
  1. 6.4 includes/notifications_subscription.class.inc \Notifications_Subscription::get_type()

Get subscription type data

@todo replace by get_info

5 calls to Notifications_Subscription::get_type()
Notifications_Subscription::format_long in ./notifications.subscription.inc
Format as long text
Notifications_Subscription::format_short in ./notifications.subscription.inc
Format as short text
Notifications_Subscription::form_info in ./notifications.subscription.inc
Subscription information field for several forms
Notifications_Subscription::get_description in ./notifications.subscription.inc
Get long description
Notifications_Subscription::get_title in ./notifications.subscription.inc
Get object title

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

function get_type($property = NULL, $default = NULL) {
  return empty($this->type) ? NULL : notifications_subscription_type($this->type, $property, $default);
}