RG_CURRENT_VIEW

Description

Defines the current view within Gravity Forms. If the view from the querystring is set, that string is returned, otherwise false is returned.

Note: This constant is used in versions of Gravity Forms prior to v2.3 when the database schema changed. Later versions simply use the code below to get the current view.

rgget( 'view' )

Usage

define( 'RG_CURRENT_VIEW', GFForms::get( 'view' ) );

Placement

This constant is set in the file gravityforms.php.