You are here

function apdqc_get_full_schema in Asynchronous Prefetch Database Query Cache 7

Gets the schema definition of the whole database schema.

Parameters

bool $alter: Set to FALSE to not run drupal_alter on schema.

Return value

array Returns an array of table definitions.

5 calls to apdqc_get_full_schema()
apdqc_admin_change_table_collation_queries in ./apdqc.admin.inc
Convert the table to the specified collation.
apdqc_admin_semaphore_table_update_schema in ./apdqc.admin.inc
Update the semaphore table schema.
apdqc_admin_sessions_table_duplicates in ./apdqc.admin.inc
See if the sessions table needs to be updated.
apdqc_admin_sessions_table_update_schema in ./apdqc.admin.inc
Update the sessions table schema.
apdqc_get_cache_tables in ./apdqc.admin.inc
Returns a list of all cache tables used.

File

./apdqc.admin.inc, line 1297
Admin page callbacks for the apdqc module.

Code

function apdqc_get_full_schema($alter = TRUE) {
  $schema =& drupal_static(__FUNCTION__, array());
  if (!isset($schema[$alter])) {
    $schema[$alter] = array();
    module_load_all_includes('install');
    foreach (module_implements('schema') as $module) {
      $current = (array) module_invoke($module, 'schema');
      $schema[$alter] = array_merge($schema[$alter], $current);
    }
    if ($alter) {
      drupal_alter('schema', $schema[$alter]);
    }
  }
  return $schema[$alter];
}