drupal_client_page

Versions
4.7 – 5
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.

Code

modules/drupal/drupal.module, line 212

<?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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.