You are here

function block_views_schema in Block Views Visibility 7

Implements hook_schema().

File

./block_views.install, line 11
Install, update and uninstall functions for the node module.

Code

function block_views_schema() {
  $schema['block_views'] = array(
    'description' => 'Sets up display criteria for blocks based on content types',
    'fields' => array(
      'module' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'description' => "The block's origin module, from {block}.module.",
      ),
      'delta' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'description' => "The block's unique delta within module, from {block}.delta.",
      ),
      'view' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'description' => "The machine-readable name of this view.",
      ),
      'display' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'description' => "The machine-readable name of this view.",
      ),
    ),
    'primary key' => array(
      'module',
      'delta',
      'view',
      'display',
    ),
    'indexes' => array(
      'view' => array(
        'view',
        'display',
      ),
    ),
  );
  return $schema;
}