function hook_party_primary_fields_fields_alter in Party 7
Alter the primary field configuration.
Adjust source settings or change weights. Note that Label, Email and Primary Field widget based primary fields will already be included and altering here will override any settings in the UI.
Parameters
array $primary_fields: The primary fields array to be altered. See PartyPrimaryFields::$fields for the data structure.
See also
PartyPrimaryFields::$fields()
1 invocation of hook_party_primary_fields_fields_alter()
- PartyPrimaryFields::buildFields in includes/
party.primary_fields.inc - Build the primary field information.
File
- ./
party.api.php, line 495 - Hooks provided by the Party module.
Code
function hook_party_primary_fields_fields_alter(&$primary_fields) {
if (isset($primary_fields['label']['party:pid'])) {
$primary_fields['label']['pid']['callback'] = 'party_primary_fields_pid_callback';
}
}