public function crm_core_contact_context_condition_contact_type::condition_values in CRM Core 8
Same name and namespace in other branches
- 8.2 modules/crm_core_contact/legacy/context/crm_core_contact_context_condition_contact_type.inc \crm_core_contact_context_condition_contact_type::condition_values()
- 7 modules/crm_core_contact/includes/context/crm_core_contact_context_condition_contact_type.inc \crm_core_contact_context_condition_contact_type::condition_values()
File
- modules/
crm_core_contact/ legacy/ context/ crm_core_contact_context_condition_contact_type.inc, line 37 - Class for determining if the user is in the right contact context.
Class
- crm_core_contact_context_condition_contact_type
- Expose node views/node forms of specific node types as a context condition.
Code
public function condition_values() {
$values = [];
foreach (ContactType::loadMultiple() as $type) {
$values[$type->type] = check_plain($type->name);
}
return $values;
}