You are here

function authcache_example_schema in Authenticated User Page Caching (Authcache) 7

Same name and namespace in other branches
  1. 6 modules/authcache_example/authcache_example.install \authcache_example_schema()

Implements hook_schema().

File

modules/authcache_example/authcache_example.install, line 6

Code

function authcache_example_schema() {
  $schema['authcache_example'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => "Creator user's {users}.uid",
      ),
      'block_text' => array(
        'type' => 'text',
        'not null' => TRUE,
        'description' => 'block_text',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}