You are here

function webform_features_schema_alter in Webform Features 7.4

Same name and namespace in other branches
  1. 7.3 webform_features.install \webform_features_schema_alter()

Implements hook_schema_alter().

2 calls to webform_features_schema_alter()
webform_features_install in ./webform_features.install
Implements hook_install().
webform_features_uninstall in ./webform_features.install
Implements hook_uninstall().

File

./webform_features.install, line 11
Alters webform's schema to add things needed to make export reliable.

Code

function webform_features_schema_alter(&$schema) {
  $schema['webform']['fields']['machine_name'] = array(
    'type' => 'varchar',
    'length' => WEBFORM_FEATURES_MACHINE_NAME_MAXLENGTH,
    'not null' => TRUE,
    'default' => '',
    'description' => 'The machine name of the webform. Used during exports & for template suggestions.',
  );
  $schema['webform_component']['fields']['machine_name'] = array(
    'type' => 'varchar',
    'length' => 2 * WEBFORM_FEATURES_MACHINE_NAME_MAXLENGTH + 2,
    'not null' => TRUE,
    'default' => '',
    'description' => "The machine name of the webform's component. Used during exports.",
  );
}