You are here

function _data_override in Data 6

Same name and namespace in other branches
  1. 8 data.module \_data_override()
  2. 7 data.module \_data_override()

Starts overriding a data table by copying it from the default definition into the DB. This function does not have any effect if called on a table that does already exist in data_tables.

1 call to _data_override()
DataTable::update in includes/DataTable.inc
Update table properties.

File

./data.module, line 443
Hooks and API functions for data module.

Code

function _data_override($name) {
  if (!db_result(db_query("SELECT name FROM {data_tables} WHERE name = '%s'", $name))) {
    if ($table = _data_load_table($name)) {
      drupal_write_record('data_tables', $table);
    }
  }
}