Checks whether the access control is enabled for a specific form.
Description
See also
Parameters
- $form
-
(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form object to check.
Return
(bool) True if the access control is enabled, false otherwise.
Source
File: src/modules/actions/redirection.php
public function enabled( $form ) { $redirect_type = $this->get_form_option( $form->id, 'type', 'redirect_none' ); return 'redirect_none' !== $redirect_type; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |