You are here

function Notifications_Field::save in Notifications 7

Save to db

File

./notifications.field.inc, line 285
Drupal Notifications Framework - Default class file

Class

Notifications_Field
Base class for Notifications fields

Code

function save() {

  // We may have a new sid for this subscription object
  if (!empty($this->subscription)) {
    $this->sid = $this->subscription->sid;
  }

  // The int value must be set for drupal_write_record
  $this->intval = (int) $this
    ->get_value();
  return drupal_write_record('notifications_subscription_fields', $this);
}