function ldapdata_admin_list in LDAP integration 5
Same name and namespace in other branches
- 5.2 ldapdata.module \ldapdata_admin_list()
- 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 116
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(
check_plain($row->name),
l(t('edit'), 'admin/settings/ldapdata/edit/' . $row->sid),
l(t('reset'), 'admin/settings/ldapdata/reset/' . $row->sid),
);
}
$header = array(
t('LDAP Config'),
array(
'data' => t('Operations'),
'colspan' => 2,
),
);
return theme('table', $header, $rows);
}