matrix.install in Matrix field 7.2
Same filename and directory in other branches
Install, update and uninstall functions for the matrix module.
File
matrix.installView 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
Name | Description |
---|---|
matrix_field_schema | Implements hook_field_schema(). |