You are here

function sgrid_schema in Sortable Grid Views Plugin 6

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

File

./sgrid.install, line 22
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;
}