You are here

function ldapdata_admin_list in LDAP integration 5.2

Same name and namespace in other branches
  1. 5 ldapdata.module \ldapdata_admin_list()
  2. 6 ldapdata.admin.inc \ldapdata_admin_list()
1 string reference to 'ldapdata_admin_list'
ldapdata_menu in ./ldapdata.module
Implements hook_menu()

File

./ldapdata.module, line 114

Code

function ldapdata_admin_list() {
  $result = db_query("SELECT sid, name FROM {ldapauth} WHERE status = '%s' ORDER BY sid", 1);
  $rows = array();
  while ($row = db_fetch_object($result)) {
    $rows[] = array(
      $row->name,
      l(t('edit'), 'admin/settings/ldapdata/edit/' . $row->name),
      l(t('reset'), 'admin/settings/ldapdata/reset/' . $row->name),
    );
  }
  $header = array(
    t('LDAP Config'),
    array(
      'data' => t('Operations'),
      'colspan' => 2,
    ),
  );
  return theme('table', $header, $rows);
}