function field_timer_field_schema in Field Timer 7.2
Same name and namespace in other branches
- 7 field_timer.install \field_timer_field_schema()
Implements hook_field_schema().
File
- ./
field_timer.install, line 11 - Install, update and uninstall functions for the Field Timer module.
Code
function field_timer_field_schema($field) {
if ($field['type'] == 'field_timer') {
return array(
'columns' => array(
'timestamp' => array(
'type' => 'int',
'not null' => FALSE,
'unsigned' => TRUE,
),
'entity_property_name' => array(
'type' => 'varchar',
'length' => 100,
'not null' => FALSE,
),
),
);
}
}