You are here

function Notifications_Subscription::add_field in Notifications 7

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

Add field from type, value

1 call to Notifications_Subscription::add_field()
Notifications_Subscription::add_field_args in ./notifications.subscription.inc
Add field arguments from url

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

function add_field($type, $value) {
  $field = Notifications_Field::build($type, $value);
  return $this
    ->set_field($field);
}