You are here

sgrid.install in Sortable Grid Views Plugin 7

Same filename and directory in other branches
  1. 6 sgrid.install

Install file for Sortable Grid module

File

sgrid.install
View source
<?php

/**
 * @file
 * Install file for Sortable Grid module
 */
function sgrid_schema() {
  $schema['sgrid'] = array(
    'description' => 'Sgrid module sort info.',
    'fields' => array(
      'nid' => array(
        'description' => 'The primary identifier for a node.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'rank' => array(
        'description' => 'The rank of the node for this view',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'view_display' => array(
        'description' => 'The view and display name this info is related to.',
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'nid',
      'rank',
      'view_display',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
sgrid_schema @file Install file for Sortable Grid module