function party_profile_form_profile2_type_form_alter in Party 7
Same name and namespace in other branches
- 8.2 modules/party_profile/party_profile.module \party_profile_form_profile2_type_form_alter()
Implements hook_form_FORM_ID_alter().
File
- modules/
party_profile/ party_profile.module, line 24 - Support for configurable user profiles which are not attached to users.
Code
function party_profile_form_profile2_type_form_alter(&$form, &$form_state) {
unset($form['data']['registration']);
$form['registration'] = array();
}