function data_get_all_tables in Data 7
Same name and namespace in other branches
- 8 data.module \data_get_all_tables()
- 6 data.module \data_get_all_tables()
Load all data tables.
13 calls to data_get_all_tables()
- DataTestCaseAPI::testAPIFunctions in tests/
data.test - Test API functions of DataTable and DataHandler.
- data_date_views_fields in ./
data.module - Implements hook_date_views_fields().
- data_entity_get_entity_tables in data_entity/
data_entity.module - Get all data tables which are declared as entities.
- data_entity_menu in data_entity/
data_entity.module - Implements hook_menu().
- data_entity_update_7000 in data_entity/
data_entity.install - Update the settings on data tables used as entities.
File
- ./
data.module, line 20 - 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;
}