You are here

function content_access_schema in Content Access 8

Same name and namespace in other branches
  1. 6 content_access.install \content_access_schema()
  2. 7 content_access.install \content_access_schema()

Implements hook_schema().

File

./content_access.install, line 39
Content access install file.

Code

function content_access_schema() {
  $schema['content_access'] = [
    'fields' => [
      'nid' => [
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ],
      'settings' => [
        'type' => 'text',
        'not null' => FALSE,
        'size' => 'medium',
      ],
    ],
    'primary key' => [
      'nid',
    ],
  ];
  return $schema;
}