function smart_date_update_8201 in Smart Date 3.3.x
Same name and namespace in other branches
- 8.2 smart_date.install \smart_date_update_8201()
- 3.x smart_date.install \smart_date_update_8201()
- 3.0.x smart_date.install \smart_date_update_8201()
- 3.1.x smart_date.install \smart_date_update_8201()
- 3.2.x smart_date.install \smart_date_update_8201()
- 3.4.x smart_date.install \smart_date_update_8201()
Implements hook_install().
File
- ./
smart_date.install, line 16
Code
function smart_date_update_8201() {
$field_type = 'smartdate';
// Define the columns we want to add.
$specs = [
'rrule' => [
'type' => 'int',
'label' => t('RRule ID'),
'unsigned' => TRUE,
'not null' => FALSE,
],
'timezone' => [
'type' => 'varchar',
'label' => t('Timezone'),
'length' => 32,
],
];
_smart_date_field_columns_add($field_type, $specs, FALSE);
}