You are here

function Notifications_Subscription::add_fields in Notifications 6.4

Add field values to existing ones

1 call to Notifications_Subscription::add_fields()
Notifications_Subscription::set_fields in includes/notifications_subscription.class.inc
Set field values, all at a time

File

includes/notifications_subscription.class.inc, line 592
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Message destination class

Code

function add_fields($fields, $normalize = TRUE) {
  if ($normalize) {
    $fields = $this
      ->normalize_fields($fields);
  }
  foreach ($fields as $key => $value) {
    $this
      ->set_field($value);
  }
}