function ldapgroups_admin_list in LDAP integration 6
Same name and namespace in other branches
- 5.2 ldapgroups.module \ldapgroups_admin_list()
- 5 ldapgroups.module \ldapgroups_admin_list()
Implements the LDAP servers list.
Return value
The HTML table with the servers list.
1 call to ldapgroups_admin_list()
- ldapgroups_admin_settings in ./
ldapgroups.admin.inc - Implements the settings page.
File
- ./
ldapgroups.admin.inc, line 29 - Module admin page callbacks.
Code
function ldapgroups_admin_list() {
$rows = array();
$result = db_query("SELECT sid, name, status FROM {ldapauth} ORDER BY weight");
while ($row = db_fetch_object($result)) {
$rows[] = array(
'data' => array(
$row->name,
l(t('edit'), 'admin/settings/ldap/ldapgroups/edit/' . $row->sid),
l(t('reset'), 'admin/settings/ldap/ldapgroups/reset/' . $row->sid),
),
'class' => $row->status ? 'menu-enabled' : 'menu-disabled',
);
}
$header = array(
t('Server'),
array(
'data' => t('Operations'),
'colspan' => 2,
),
);
return theme('table', $header, $rows);
}