You are here

function UserRestrictions::save in User restrictions 7

File

./user_restrictions.classes.inc, line 221
Contains the classes used by the User restrictions module.

Class

UserRestrictions
The main class used by the User Restrictions module.

Code

function save() {
  $primary_keys = array();
  if (!empty($this->urid)) {
    $primary_keys[] = 'urid';
  }
  $record = clone $this;
  return drupal_write_record('user_restrictions', $record, $primary_keys);
}