Last active
December 15, 2015 18:30
-
-
Save heddn/5304498 to your computer and use it in GitHub Desktop.
Site-wide Contact Form simplification
This file contains hidden or 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
| /** | |
| * Implements hook_form_FORM_ID_alter(). | |
| */ | |
| function example_form_contact_site_form_alter(&$form, &$form_state, $form_id) { | |
| $form['cid']['#access'] = FALSE; | |
| $form['copy']['#access'] = FALSE; | |
| $form['copy']['#default_value'] = TRUE; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment