You are here

function data_get_all_tables in Data 6

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

Load all data tables.

12 calls to data_get_all_tables()
DataTestCaseAPI::testAPIFunctions in tests/data.test
Test API functions of DataTable and DataHandler.
data_node_block in data_node/data_node.module
Implementation of hook_block().
data_node_views_data in data_node/views/data_node.views.inc
Implementation of hook_views_data().
data_schema_alter in ./data.module
Implementation of hook_schema_alter().
data_search_get_tables in data_search/data_search.module
Gather all tables which might be eligible for searching.

... See full list

File

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

Code

function data_get_all_tables($reset = FALSE) {
  $tables = array();
  if ($tables = _data_load_table(NULL, $reset)) {
    foreach ($tables as $table_name => $table) {
      if ($table = data_get_table($table_name)) {
        $tables[$table_name] = $table;
      }
    }
  }
  return $tables;
}