You are here

public function DataHandler::insert in Data 7

Same name and namespace in other branches
  1. 8 includes/DataHandler.inc \DataHandler::insert()
  2. 6 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 DataHandler 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;
}