function crm_core_relationship_get_relationships in CRM Core 8.2
Same name and namespace in other branches
- 8.3 modules/crm_core_relationship/crm_core_relationship.module \crm_core_relationship_get_relationships()
- 8 modules/crm_core_relationship/crm_core_relationship.module \crm_core_relationship_get_relationships()
- 7 modules/crm_core_relationship/crm_core_relationship.module \crm_core_relationship_get_relationships()
Return a list of relation bundle that are crm_core_relationship
Return value
array $relationships an array of relation bundle of relationships keyed by relationship type
4 calls to crm_core_relationship_get_relationships()
- crm_core_relationship_access_permissions in modules/
crm_core_relationship/ crm_core_relationship.module - Access callback for all relationship permissions
- crm_core_relationship_permission in modules/
crm_core_relationship/ crm_core_relationship.module - Implements hook_permission().
- crm_core_relationship_ui_menu in modules/
crm_core_relationship_ui/ crm_core_relationship_ui.module - Implements hook_menu().
- crm_core_relationship_update_7000 in modules/
crm_core_relationship/ crm_core_relationship.install - Adding "status" field to crm_core relationships.
File
- modules/
crm_core_relationship/ crm_core_relationship.module, line 249 - CRM Core Relationship, handles relationship logic and API.
Code
function crm_core_relationship_get_relationships() {
$relationships = array();
foreach (RelationType::loadMultiple() as $type => $info) {
if (crm_core_relationship_is_relationship_type($type)) {
$relationships[$type] = $info;
}
}
return $relationships;
}