function crm_core_relationship_theme_suggestions_relationship 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_theme_suggestions_relationship()
- 8 modules/crm_core_relationship/crm_core_relationship.module \crm_core_relationship_theme_suggestions_relationship()
Implements hook_theme_suggestions_HOOK().
File
- modules/
crm_core_relationship/ crm_core_relationship.module, line 331 - CRM Core Relationship, handles relationship logic and API.
Code
function crm_core_relationship_theme_suggestions_relationship(array $variables) {
$suggestions = array();
$entity = $variables['relationship'];
// Add template suggestions.
$suggestions[] = 'relationship__' . $entity->relation_type;
$suggestions[] = 'relationship__' . $entity
->id();
return $suggestions;
}