function _civicrm_entity_available_entities_get_option_set in CiviCRM Entity 7.2
Build an option set array used by the configure CiviCRM Entity form, and various submodules
Parameters
$available_entities:
Return value
array
2 calls to _civicrm_entity_available_entities_get_option_set()
- civicrm_entity_admin_settings_form in ./
civicrm_entity.admin_form.inc - Settings form callback function
- _civicrm_entity_enabled_entities in ./
civicrm_entity.module - Whitelist of enabled entities. We don't have a compelling reason for not including all entities but some entities are fairly non-standard and of course the rule hook would instantiate rules more often if all were enabled.
File
- ./
civicrm_entity.module, line 2050
Code
function _civicrm_entity_available_entities_get_option_set($available_entities) {
$available_entities_option_set = array();
if (!empty($available_entities)) {
foreach ($available_entities as $entity_type => $api_entity) {
$available_entities_option_set[$entity_type] = $entity_type;
}
}
return $available_entities_option_set;
}