You are here

function sgrid_schema in Sortable Grid Views Plugin 7

Same name and namespace in other branches
  1. 6 sgrid.install \sgrid_schema()

@file Install file for Sortable Grid module

File

./sgrid.install, line 6
Install file for Sortable Grid module

Code

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;
}