function redhen_connection_type_options_list in RedHen CRM 8
Return an array of Connection types to be used as an options list.
Return value
array Keyed by name with a label value.
File
- modules/
redhen_connection/ redhen_connection.module, line 88 - Contains redhen_connection.module..
Code
function redhen_connection_type_options_list() {
$options = [];
foreach (ConnectionType::loadMultiple() as $type) {
$options[$type
->id()] = $type
->label();
}
return $options;
}