You are here

public function DataHandler::update in Data 6

Same name and namespace in other branches
  1. 8 includes/DataHandler.inc \DataHandler::update()
  2. 7 includes/DataHandler.inc \DataHandler::update()

Update a record.

Parameters

$record: An array that is the record to save to this handler's table.

$update: A string or an array of strings that defines the keys to use for this update.

See also

drupal_write_record().

1 call to DataHandler::update()
DataHandler::save in includes/DataHandler.inc
Save one or more records to the table.

File

includes/DataHandler.inc, line 96
Definition of DataHandler class.

Class

DataHandler
Simple access methods to table data. Can be used on any table, not just Data managed tables.

Code

public function update(&$record, $update) {
  $result = drupal_write_record($this->table, $record, $update);
  module_invoke_all('data_update', $record, $this->table);
  return $result;
}