You are here

public function Notifications_Subscription::set_properties_from_values in Notifications 7

Set instance properties from array of values

1 call to Notifications_Subscription::set_properties_from_values()
Notifications_Subscription::set_properties_from_submission in ./notifications.subscription.inc
Set instance properties from form submission

File

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

Class

Notifications_Subscription
Common base for subscription type and subscription instance

Code

public function set_properties_from_values($values, $validate = TRUE) {

  // Process some other fields that may be there
  foreach (array(
    'send_method',
    'send_interval',
  ) as $field) {
    if (isset($values[$field])) {
      $this
        ->set_property($field, $values[$field]);
    }
  }
  return $this;
}