public function DataHandler::update in Data 7
Same name and namespace in other branches
- 8 includes/DataHandler.inc \DataHandler::update()
- 6 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
1 call to DataHandler::update()
- DataHandler::save in includes/
DataHandler.inc - Save one or more records to the table.
File
- includes/
DataHandler.inc, line 89 - 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;
}