function rooms_field_schema in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Implements hook_field_schema().
File
- ./
rooms.install, line 11 - Install, update and uninstall functions for the rooms module.
Code
function rooms_field_schema($field) {
if ($field['type'] == 'rooms_options') {
return array(
'columns' => array(
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'quantity' => array(
'type' => 'int',
'not null' => FALSE,
),
'operation' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'value' => array(
'type' => 'float',
'not null' => FALSE,
),
'type' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
);
}
}