You are here

function webform_ajax_install in Webform Ajax 7

Same name and namespace in other branches
  1. 7.2 webform_ajax.install \webform_ajax_install()

Implements hook_install().

File

./webform_ajax.install, line 29
Webform AJAX install file.

Code

function webform_ajax_install() {

  // Update schema. Add our additional fields.
  $schema = array(
    'webform' => array(),
  );
  webform_ajax_schema_alter($schema);
  foreach ($schema as $table => $table_def) {
    foreach ($table_def['fields'] as $field => $spec) {
      db_add_field($table, $field, $spec);
    }
  }
}