You are here

function blockcache_alter_schema in Block Cache Alter 6

Same name and namespace in other branches
  1. 7 blockcache_alter.install \blockcache_alter_schema()

Implementation of hook_schema().

File

./blockcache_alter.install, line 27
Install file.

Code

function blockcache_alter_schema() {
  $schema['blockcache_alter'] = array(
    'description' => 'Stores cache settings for blocks.',
    'fields' => array(
      'module' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
        'description' => "The module from which the block originates; for example, 'user' for the Who's Online block, and 'block' for any custom blocks.",
      ),
      'delta' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '0',
        'description' => 'Unique ID for block within a module.',
      ),
      'cache' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 1,
        'size' => 'tiny',
        'description' => 'Binary flag to indicate block cache mode. (-1: Do not cache, 1: Cache per role, 2: Cache per user, 4: Cache per page, 8: Block cache global) See BLOCK_CACHE_* constants in block.module for more detailed information.',
      ),
    ),
  );
  return $schema;
}