function module_test_schema
Same name in other branches
- 9 core/modules/system/tests/modules/module_test/module_test.install \module_test_schema()
- 8.9.x core/modules/system/tests/modules/module_test/module_test.install \module_test_schema()
- 10 core/modules/system/tests/modules/module_test/module_test.install \module_test_schema()
- 11.x core/modules/system/tests/modules/module_test/module_test.install \module_test_schema()
Implements hook_schema().
File
-
modules/
simpletest/ tests/ module_test.install, line 11
Code
function module_test_schema() {
$schema['module_test'] = array(
'description' => 'Dummy table to test the behavior of hook_schema() during module installation.',
'fields' => array(
'data' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'An example data column for the module.',
),
),
);
return $schema;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.