You are here

function crm_core_contact_context_condition_contact_type::condition_values in CRM Core 7

Same name and namespace in other branches
  1. 8 modules/crm_core_contact/legacy/context/crm_core_contact_context_condition_contact_type.inc \crm_core_contact_context_condition_contact_type::condition_values()
  2. 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()

Condition values.

Overrides context_condition::condition_values

File

modules/crm_core_contact/includes/context/crm_core_contact_context_condition_contact_type.inc, line 28
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

function condition_values() {
  $values = array();
  foreach (crm_core_contact_types() as $type) {
    $values[$type->type] = check_plain($type->name);
  }
  return $values;
}