add missing function

This commit is contained in:
Bilal Catic
2018-12-08 22:00:47 +01:00
parent 86867c4e04
commit 902d339c6e

View File

@@ -56,6 +56,15 @@ function wiaas_get_organizations_with_role($role) {
return is_array($terms) ? $terms : array(); return is_array($terms) ? $terms : array();
} }
/**
* Retrieves list of broker organizations in [ 'id' => 'name' ] format
*
* @return array
*/
function wiaas_get_brokers() {
return wiaas_get_organizations_with_role('administrator');
}
/** /**
* Retrieves list of commercial lead organizations in [ 'id' => 'name' ] format * Retrieves list of commercial lead organizations in [ 'id' => 'name' ] format
* *