hook_db_def_tables()
importexportapi/docs/developer/hooks/importexportapi_db.php, line 22
Define the aliases of database tables that are used in data definitions.
An array of database tables and their aliases, where each key is a database table name, and where each value is a database table alias.
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
<?php
function hook_db_def_tables() {
$tables = array();
$tables['node'] = 'n';
$tables['node_revisions'] = 'nr';
$tables['node_access'] = 'na';
return $tables;
}
?>