drupal_get_module_schema

function drupal_get_module_schema

drupal_get_module_schema($module, $table = NULL)

Returns a module's schema.

This function can be used to retrieve a schema specification in hook_schema(), so it allows you to derive your tables from existing specifications.

Parameters

string $module: The module to which the table belongs.

string $table: The name of the table. If not given, the module's complete schema is returned.

Related topics

Schema API
API to handle database schemas.

File

core/includes/登录查看完整内容