Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webform_rules
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
webform_rules
Commits
9d37b77b
Commit
9d37b77b
authored
13 years ago
by
Stefan Borchert
Browse files
Options
Downloads
Patches
Plain Diff
Bug #1005270 by nicholasThompson: rules triggerd on every submit.
parent
0d0e7627
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webform_rules.module
+7
-0
7 additions, 0 deletions
webform_rules.module
with
7 additions
and
0 deletions
webform_rules.module
+
7
−
0
View file @
9d37b77b
...
...
@@ -20,6 +20,13 @@ function webform_rules_form_alter(&$form, $form_state, $form_id) {
* Custom submit handler for webform submissions.
*/
function
webform_rules_client_form_submit
(
$form
,
&
$form_state
)
{
// If the webform is NOT completed, don't run the submit handler!
// This is relevant for multistep forms.
if
(
!
$form_state
[
'webform_completed'
])
{
return
;
}
// If we've got to this point, then we are not mid-way through a form submission.
$values
=
$form_state
[
'values'
];
// Check if user is submitting as a draft.
$is_draft
=
$values
[
'op'
]
==
t
(
'Save Draft'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment