first import

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2012-10-05 13:50:00 +02:00
commit 95098773d5
1051 changed files with 309382 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?php
/**
* @file
* Install, update and uninstall functions for the number module.
*/
/**
* Implements hook_field_schema().
*/
function number_field_schema($field) {
switch ($field['type']) {
case 'number_integer' :
$columns = array(
'value' => array(
'type' => 'int',
'not null' => FALSE
),
);
break;
case 'number_float' :
$columns = array(
'value' => array(
'type' => 'float',
'not null' => FALSE
),
);
break;
case 'number_decimal' :
$columns = array(
'value' => array(
'type' => 'numeric',
'precision' => $field['settings']['precision'],
'scale' => $field['settings']['scale'],
'not null' => FALSE
),
);
break;
}
return array(
'columns' => $columns,
);
}