Description
The “gform_view” action allows additional actions to be performed based on the form view. Some form views that are used are “entries”, “entry”, “notification”, and “settings”.
Usage
add_action( 'gform_view', 'your_function_name', 10, 2 );
Example
add_action( 'gform_view', 'your_function_name', 10, 2 ); function your_function_name( $view, $id ) { // Do something }
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in gravityforms.php.