function drupal_get_schema

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 bootstrap.inc drupal_get_schema($table = NULL, $rebuild = FALSE)
cle7 bootstrap.inc drupal_get_schema($table = NULL, $rebuild = FALSE)
elmsmedia7 bootstrap.inc drupal_get_schema($table = NULL, $rebuild = FALSE)
icor7 bootstrap.inc drupal_get_schema($table = NULL, $rebuild = FALSE)
meedjum_blog7 bootstrap.inc drupal_get_schema($table = NULL, $rebuild = FALSE)
mooc7 bootstrap.inc drupal_get_schema($table = NULL, $rebuild = FALSE)

Gets the schema definition of a table, or the whole database schema.

The returned schema will include any modifications made by any module that implements hook_schema_alter().

Parameters

$table: The name of the table. If not given, the schema of all tables is returned.

$rebuild: If true, the schema will be rebuilt instead of retrieved from the cache.

Related topics

64 calls to drupal_get_schema()
backup_migrate_item::get_schema in sites/all/modules/ulmus/backup_migrate/includes/crud.inc
Get the schema for the item type.
ctools_entity_from_schema_get_children in sites/all/modules/ulmus/ctools/plugins/relationships/entity_from_schema.inc
ctools_export_get_schema in sites/all/modules/ulmus/ctools/includes/export.inc
Get the schema for a given table.
ctools_export_get_schemas in sites/all/modules/ulmus/ctools/includes/export.inc
Gets the schemas for all tables with ctools object metadata.
ctools_export_load_object in sites/all/modules/ulmus/ctools/includes/export.inc
Load some number of exportable objects.

... See full list

File

includes/bootstrap.inc, line 2940
Functions that need to be loaded on every Drupal request.

Code

function drupal_get_schema($table = NULL, $rebuild = FALSE) {
  static $schema;

  if ($rebuild || !isset($table)) {
    $schema = drupal_get_complete_schema($rebuild);
  }
  elseif (!isset($schema)) {
    $schema = new SchemaCache();
  }

  if (!isset($table)) {
    return $schema;
  }
  if (isset($schema[$table])) {
    return $schema[$table];
  }
  else {
    return FALSE;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.