function vertical_tabs_config_schema in Vertical Tabs Config 8
Same name and namespace in other branches
- 7 vertical_tabs_config.install \vertical_tabs_config_schema()
Implements hook_schema().
File
- ./
vertical_tabs_config.install, line 18 - Install and uninstall handling of module.
Code
function vertical_tabs_config_schema() {
$schema = [];
$schema['vertical_tabs_config'] = [
'description' => 'Module configuration',
'fields' => [
'id' => [
'description' => 'Primary key: ID de registro.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
],
'vertical_tab' => [
'description' => 'Vertical tab name',
'type' => 'text',
'not null' => TRUE,
],
'content_type' => [
'description' => 'CT machine name',
'type' => 'text',
'not null' => TRUE,
],
'roles' => [
'description' => 'Roles compressed in json',
'type' => 'text',
'not null' => TRUE,
],
'hidden' => [
'description' => 'Indicates if option is visible or not',
'type' => 'int',
'length' => 1,
'not null' => TRUE,
'default' => '0',
],
],
'primary key' => [
'id',
],
];
return $schema;
}