function ldapgroups_admin_list in LDAP integration 5.2
Same name and namespace in other branches
- 5 ldapgroups.module \ldapgroups_admin_list()
- 6 ldapgroups.admin.inc \ldapgroups_admin_list()
1 string reference to 'ldapgroups_admin_list'
- ldapgroups_menu in ./
ldapgroups.module - Implementation of hook_menu()
File
- ./
ldapgroups.module, line 84
Code
function ldapgroups_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/ldapgroups/edit/' . $row->name),
l(t('reset'), 'admin/settings/ldapgroups/reset/' . $row->name),
);
}
$header = array(
t('LDAP Config'),
array(
'data' => t('Operations'),
'colspan' => 2,
),
);
return theme('table', $header, $rows);
}