| 5 drupal.module | drupal_client_page($sort = 'name') |
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
<?php
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);
}
?>Login or register to post comments