Skip to content

Instantly share code, notes, and snippets.

@lincoln-chawora
Last active November 14, 2019 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lincoln-chawora/9655fb1c4c7b7bf4ffc557748ca4100d to your computer and use it in GitHub Desktop.
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
// $cancel_policy will equal the value of the field "field_name"
$cancel_policy = variable_get('field_name', '');
@lincoln-chawora
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment