function hook_form_profile2_form_alter in Profile 2 7.2
Same name and namespace in other branches
- 7 profile2.api.php \hook_form_profile2_form_alter()
Alter profile2 forms.
Modules may alter the profile2 entity form regardless to which form it is attached by making use of this hook or the profile type specifiy hook_form_profile2_edit_PROFILE_TYPE_form_alter(). #entity_builders may be used in order to copy the values of added form elements to the entity, just as described by entity_form_submit_build_entity().
Parameters
$form: Nested array of form elements that comprise the form.
$form_state: A keyed array containing the current state of the form.
See also
1 function implements hook_form_profile2_form_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- profile2_diff_form_profile2_form_alter in contrib/
profile2_diff.module - Implements hook_form_alter().
File
- ./
profile2.api.php, line 270 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_form_profile2_form_alter(&$form, &$form_state) {
// Your alterations.
}