function crm_core_relationship_ui_form_alter in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_form_alter()
- 8.2 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_form_alter()
- 7 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_form_alter()
Implements hook_form_alter.
File
- modules/
crm_core_relationship_ui/ crm_core_relationship_ui.module, line 163 - Relationship UI module hooks.
Code
function crm_core_relationship_ui_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'field_ui_field_overview_form' || $form_id == 'field_ui_display_overview_form') {
// We only care about crm contact types (bundles)
// setting title to the fields form.
if (crm_core_relationship_is_relationship_type($form['#bundle'])) {
drupal_set_title($form['#bundle']);
}
}
}