function fraction_field_schema in Fraction 7
Implements hook_field_schema().
File
- ./
fraction.install, line 11 - Fraction install
Code
function fraction_field_schema($field) {
return array(
'columns' => array(
'numerator' => array(
'description' => 'Fraction numerator value',
'type' => 'int',
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
'denominator' => array(
'description' => 'Fraction denominator value',
'type' => 'int',
'not null' => TRUE,
'default' => 1,
),
),
);
}