function webform_ajax_schema_alter in Webform Ajax 7
Same name and namespace in other branches
- 7.2 webform_ajax.install \webform_ajax_schema_alter()
Implements hook_schema_alter().
2 calls to webform_ajax_schema_alter()
- webform_ajax_install in ./
webform_ajax.install - Implements hook_install().
- webform_ajax_uninstall in ./
webform_ajax.install - Implements hook_uninstall().
File
- ./
webform_ajax.install, line 12 - Webform AJAX install file.
Code
function webform_ajax_schema_alter(&$schema) {
// Define our additional fields.
if (isset($schema['webform'])) {
// Declare new column for webform_ajax property.
$schema['webform']['fields']['webform_ajax'] = array(
'description' => 'Value of a webform for AJAX with confirm screen (1), no confirm screen (-1) or no AJAX (0).',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
);
}
}