1 common.inc backdrop_install_schema($module)

Creates all tables defined in a module's hook_schema().

Note: This function does not pass the module's schema through hook_schema_alter(). The module's tables will be created exactly as the module defines them.

Parameters

$module: The module for which the tables will be created.

Related topics

File

core/includes/common.inc, line 8177
Common functions that many Backdrop modules will need to reference.

Code

function backdrop_install_schema($module) {
  $schema = backdrop_get_schema_unprocessed($module);
  _backdrop_schema_initialize($schema, $module, FALSE);

  foreach ($schema as $name => $table) {
    db_create_table($name, $table);
  }
}