Last active
November 14, 2019 13:36
-
-
Save lincoln-chawora/9655fb1c4c7b7bf4ffc557748ca4100d to your computer and use it in GitHub Desktop.
How to use variable_get() to get the value of a form field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $cancel_policy will equal the value of the field "field_name" | |
$cancel_policy = variable_get('field_name', ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drupal official documentation https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/variable_get/7.x