function webform_chart_install in Webform Chart 7
Same name and namespace in other branches
- 7.2 webform_chart.install \webform_chart_install()
Implements hook_install().
2 calls to webform_chart_install()
- webform_chart_update_7000 in ./
webform_chart.install - Install the database for the first time.
- webform_chart_update_7001 in ./
webform_chart.install - Get ready for Webform Chart 7.x-1.0-rc3.
File
- ./
webform_chart.install, line 35 - webform_chart.install
Code
function webform_chart_install() {
$schema['webform'] = array();
$schema['webform_component'] = array();
webform_chart_schema_alter($schema);
// Update the webform table according to schema_alter/
foreach ($schema['webform']['fields'] as $name => $spec) {
db_add_field('webform', $name, $spec);
}
// Update the webform_component table according to schema_alter.
foreach ($schema['webform_component']['fields'] as $name => $spec) {
db_add_field('webform_component', $name, $spec);
}
}