function webform_localization_install in Webform Localization 7.4
Same name and namespace in other branches
- 7 webform_localization.install \webform_localization_install()
Implements hook_install().
File
- ./
webform_localization.install, line 11 - Webform Localization module install/schema hooks.
Code
function webform_localization_install() {
// NOTE:
// We add a field to record the language of the submission since when using
// "Localization by String Translation" you can get single webform been
// submitted by several nodes in different languages.
db_add_field('webform_submissions', 'language', array(
'description' => 'The {languages}.language source of this submission.',
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
));
variable_set('webform_localization_using_uuid', module_exists('uuid'));
}