Created
April 8, 2014 09:32
-
-
Save waako/10104389 to your computer and use it in GitHub Desktop.
Hide/Change User Edit Profile form fields
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
<?php | |
/** | |
* Implements hook_form_user_profile_form_alter() | |
* | |
**/ | |
function hamilton_trust_form_user_profile_form_alter(&$form, &$form_state, $form_id) { | |
unset($form['field_user_fieldname']); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment