function redhen_org_type_options_list in RedHen CRM 8
Same name and namespace in other branches
- 7 modules/redhen_org/redhen_org.module \redhen_org_type_options_list()
Return an associative array of org types to be used as an options list.
Return value
array Keyed by name with a label value.
File
- modules/
redhen_org/ redhen_org.module, line 79 - Contains redhen_org.module..
Code
function redhen_org_type_options_list() {
$options = [];
foreach (OrgType::loadMultiple() as $type) {
$options[$type
->id()] = $type
->label();
}
return $options;
}