You are here

function _ldap_feeds_query_legend in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_feeds/ldap_feeds.module \_ldap_feeds_query_legend()
  2. 7.2 ldap_feeds/ldap_feeds.module \_ldap_feeds_query_legend()

File

ldap_feeds/ldap_feeds.module, line 118

Code

function _ldap_feeds_query_legend($records, $field_name) {
  $examples = array();
  foreach ($records as $i => $record) {
    $examples[] = $record[$field_name];
    if ($i > 5) {
      break;
    }
  }
  return join(', ', array_filter($examples));
}