function registration_update_7202 in Entity Registration 7.2
Add token field for open and close date on Registration configuration.
File
- ./
registration.install, line 703 - Schema and installation hooks for registration module.
Code
function registration_update_7202() {
$token_fields = array(
'open_date_token' => array(
'description' => 'Token value to determine open date.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => NULL,
),
'close_date_token' => array(
'description' => 'Token value to determine close date.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => NULL,
),
);
foreach ($token_fields as $name => $config) {
if (!db_field_exists('registration_entity', $name)) {
db_add_field('registration_entity', $name, $config);
}
}
}