function drupal_client_page in Drupal 5
Same name and namespace in other branches
- 4 modules/drupal.module \drupal_client_page()
Formats a list of all clients.
This function may be called from a custom page on sites that are Drupal directory servers.
File
- modules/
drupal/ drupal.module, line 212 - Lets users log in using a Drupal ID and can notify a central server about your site.
Code
function drupal_client_page($sort = 'name') {
$result = db_query('SELECT * FROM {client} ORDER BY %s', $sort);
$clients = array();
while ($client = db_fetch_object($result)) {
$clients[] = $client;
}
return theme('client_list', $clients);
}