function crm_core_relationship_ui_preprocess_page in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_preprocess_page()
- 8.2 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_preprocess_page()
- 7 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_preprocess_page()
Implements hook_preprocess_page().
File
- modules/
crm_core_relationship_ui/ crm_core_relationship_ui.module, line 393 - Relationship UI module hooks.
Code
function crm_core_relationship_ui_preprocess_page(&$vars) {
// TODO: Figure out better way to get rid of tabs at
// "crm-core/contact/%/relationships/add" page.
if (arg(0) == 'crm-core' && arg(1) == 'contact' && arg(3) == 'relationships' && arg(4) == 'add') {
$vars['tabs']['#primary'] = [];
}
}