public function DataHandler::insert in Data 8
Same name and namespace in other branches
- 6 includes/DataHandler.inc \DataHandler::insert()
- 7 includes/DataHandler.inc \DataHandler::insert()
Insert a record.
Parameters
$record: An array that is the record to save to this handler's table.
See also
drupal_write_record().
1 call to DataHandler::insert()
- DataHandler::save in includes/
DataHandler.inc - Save one or more records to the table.
File
- includes/
DataHandler.inc, line 72 - Definition of TableFactory class.
Class
- DataHandler
- Simple access methods to table data. Can be used on any table, not just Data managed tables.
Code
public function insert($record) {
$result = drupal_write_record($this->table, $record);
module_invoke_all('data_insert', $record, $this->table);
return $result;
}