function boolean_field_schema in Boolean Field 7
Implements hook_field_schema().
File
- ./
boolean.install, line 12 - Install, update and uninstall functions for the boolean module.
Code
function boolean_field_schema($field) {
switch ($field['type']) {
case 'number_boolean':
$columns = array(
'value' => array(
'type' => 'int',
'not null' => TRUE,
'default' => -1,
),
);
break;
}
return array(
'columns' => $columns,
);
}