function _data_override in Data 7
Same name and namespace in other branches
- 8 data.module \_data_override()
- 6 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 421 - Hooks and API functions for data module.
Code
function _data_override($name) {
if (!db_query("SELECT name FROM {data_tables} WHERE name = :name", array(
':name' => $name,
))
->fetchField()) {
if ($table = _data_load_table($name)) {
drupal_write_record('data_tables', $table);
}
}
}