You are here

matrix.install in Matrix field 8.2

Same filename and directory in other branches
  1. 5 matrix.install
  2. 6.2 matrix.install
  3. 6 matrix.install
  4. 7.2 matrix.install

Install, update and uninstall functions for the matrix module.

File

matrix.install
View source
<?php

// $Id: matrix.install,v 1.2.4.2.2.3.2.1 2011/01/18 10:10:05 aaron1234nz Exp $

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

/**
 * Implements hook_field_schema().
 */
function matrix_field_schema($field) {
  return array(
    'columns' => array(
      'row' => array(
        'type' => 'int',
        'not null' => FALSE,
      ),
      'col' => array(
        'type' => 'int',
        'not null' => FALSE,
      ),
      'value' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => FALSE,
      ),
    ),
    'indexes' => array(
      'row' => array(
        'row',
      ),
      'col' => array(
        'col',
      ),
      'value' => array(
        'value',
      ),
    ),
  );
}

Functions

Namesort descending Description
matrix_field_schema Implements hook_field_schema().