function party_field_extra_fields in Party 7
Implements hook_field_extra_fields().
File
- ./
party.module, line 1824 - Provides a generic CRM party entity.
Code
function party_field_extra_fields() {
$extra = array();
$info = PartyPrimaryFields::getPropertyInfo('party', 'party');
$i = -20;
foreach ($info as $property => $info) {
if (!empty($info['party primary field'])) {
$extra['party']['party']['form'][$property] = array(
'label' => $info['label'],
'description' => $info['description'],
'weight' => $i++,
'edit' => l(t('edit'), 'admin/community/party/primary-fields/' . $property),
);
}
}
return $extra;
}