_drupal_schema_initialize
- Versions
- 7
_drupal_schema_initialize($module, &$schema)
Fill in required default values for table definitions returned by hook_schema().
Parameters
$module The module for which hook_schema() was invoked.
$schema The schema definition array as it was returned by the module's hook_schema().
Related topics
Code
includes/common.inc, line 5671
<?php
function _drupal_schema_initialize($module, &$schema) {
// Set the name and module key for all tables.
foreach ($schema as $name => $table) {
if (empty($table['module'])) {
$schema[$name]['module'] = $module;
}
if (!isset($table['name'])) {
$schema[$name]['name'] = $name;
}
}
}
?>Login or register to post comments 