You are here

public static function Notifications_Subscription::build_type in Notifications 7

Build from subscription type

2 calls to Notifications_Subscription::build_type()
notifications_content_test_template_submit in notifications_content/notifications_content.admin.inc
Process template test
notifications_subscription in ./notifications.module
Build subscription type object. We keep an object for each type so we can quickly clone it

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public static function build_type($type) {
  $class = self::type_info($type, 'class', 'Notifications_Subscription');
  $subscription = new $class();
  $subscription->type = $type;
  return $subscription;
}