You are here

function gdpr_get_complete_schema in General Data Protection Regulation 7

Gets the whole database schema with field descriptions.

1 call to gdpr_get_complete_schema()
gdpr_dump_settings_form in modules/gdpr_dump/gdpr_dump.module
Gdpr dump settings form.

File

modules/gdpr_dump/gdpr_dump.module, line 203
Module file for the GDPR Sql-Dump module.

Code

function gdpr_get_complete_schema() {
  $schema = [];
  if (function_exists('module_load_all_includes')) {
    module_list(TRUE);
    module_load_all_includes('install');
  }
  require_once DRUPAL_ROOT . '/includes/common.inc';

  // Invoke hook_schema for all modules.
  foreach (module_implements('schema') as $module) {
    $current = (array) module_invoke($module, 'schema');
    _drupal_schema_initialize($current, $module, FALSE);
    $schema = array_merge($schema, $current);
  }
  drupal_alter('schema', $schema);
  return $schema;
}