function civicrm_entity_get_locations in CiviCRM Entity 7.2
gt location options
Return value
array
2 string references to 'civicrm_entity_get_locations'
- civicrm_entity_rules_action_info in ./
civicrm_entity.rules.inc - Implements hook_rules_action_info().
- civicrm_entity_rules_condition_info in ./
civicrm_entity.rules.inc - Implements hook_rules_condition_info().
File
- ./
civicrm_entity.module, line 3243
Code
function civicrm_entity_get_locations() {
if (!civicrm_initialize()) {
return array();
}
$locations = civicrm_api3('address', 'getoptions', array(
'field' => 'location_type_id',
));
$locations = $locations['values'];
return array(
'0' => 'Primary',
) + $locations;
}