diff --git a/help/api-forms.html b/help/api-forms.html index 3849719..0fc4497 100644 --- a/help/api-forms.html +++ b/help/api-forms.html @@ -55,6 +55,11 @@ A "form_example" module could add a confirmation step by setting: in form_example_views_form_submit(). Then, views_form would call form_example_confirmation($form, $form_state, $view, $output) to get that step. +Important: You can fetch the Views object in form_alter and validate / submit hooks from the form state: +
+  $view = $form_state['build_info']['args'][0];
+
+

Relevant Views functions