function civicrm_entity_field_extra_fields_alter in CiviCRM Entity 7.2
Implements hook_field_extra_fields_alter().
put civicrm properties on the manage fields form for weight based ordering of edit form elements
Parameters
$info:
File
- ./
civicrm_entity.module, line 2206
Code
function civicrm_entity_field_extra_fields_alter(&$info) {
if (!civicrm_initialize(TRUE)) {
return;
}
$entities = _civicrm_entity_enabled_entities();
foreach ($entities as $drupal_entity => $civicrm_entity) {
$properties[$drupal_entity]['properties'] = _civicrm_entity_getproperties($civicrm_entity, 'property_info');
if (!empty($info[$drupal_entity][$drupal_entity]['display'])) {
foreach ($info[$drupal_entity][$drupal_entity]['display'] as $name => $props) {
$info[$drupal_entity][$drupal_entity]['form'][$name] = $props;
}
}
}
}