You are here

block_views.install in Block Views Visibility 7

Install, update and uninstall functions for the node module.

File

block_views.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the node module.
 */

/**
 * Implements hook_schema().
 */
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;
}

Functions

Namesort descending Description
block_views_schema Implements hook_schema().