function _ldap_feeds_query_legend in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_feeds/ldap_feeds.module \_ldap_feeds_query_legend()
- 7 ldap_feeds/ldap_feeds.module \_ldap_feeds_query_legend()
File
- ldap_feeds/
ldap_feeds.module, line 126
Code
function _ldap_feeds_query_legend($records, $field_name) {
$examples = [];
foreach ($records as $i => $record) {
$examples[] = $record[$field_name];
if ($i > 5) {
break;
}
}
return join(', ', array_filter($examples));
}