protected function Notifications_Subscription::set_properties_from_submission in Notifications 7
Set instance properties from form submission
2 calls to Notifications_Subscription::set_properties_from_submission()
- Notifications_Subscription::form_submit in ./
notifications.subscription.inc - Process form submission
- Notifications_Subscription::form_validate in ./
notifications.subscription.inc - Validate form
File
- ./
notifications.subscription.inc, line 626 - Drupal Notifications Framework - Default class file
Class
- Notifications_Subscription
- Common base for subscription type and subscription instance
Code
protected function set_properties_from_submission($form, &$form_state) {
// Process regular values and validate
$this
->set_properties_from_values($form_state['values'], TRUE);
// There may be optional fields to add
if ($fields = $this
->build_fields_from_submission($form, $form_state)) {
$this
->set_fields($fields);
}
return $this;
}