function webform_rules_form_alter in Webform Rules 6
Same name and namespace in other branches
- 7 webform_rules.module \webform_rules_form_alter()
Implementation of hook_form_alter().
File
- ./
webform_rules.module, line 50 - Adds rules integration for webform submissions.
Code
function webform_rules_form_alter(&$form, $form_state, $form_id) {
if (strpos($form_id, 'webform_client_form_') !== FALSE) {
// Add custom submit handler to webform form.
$form['#submit'][] = 'webform_rules_client_form_submit';
}
}