hook_db_def_tables

Definition

hook_db_def_tables()
importexportapi/docs/developer/hooks/importexportapi_db.php, line 22

Description

Define the aliases of database tables that are used in data definitions.

Return value

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.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function hook_db_def_tables() {
  $tables = array();

  $tables['node'] = 'n';
  $tables['node_revisions'] = 'nr';
  $tables['node_access'] = 'na';

  return $tables;
}
?>