theme_client_list

5 drupal.module theme_client_list($clients)

Theme a client list.

1 theme call to theme_client_list()

File

modules/drupal/drupal.module, line 226
Lets users log in using a Drupal ID and can notify a central server about your site.

Code

function theme_client_list($clients) {
  // Note: All fields except the mission are treated as plain-text.
  // The mission is stripped of any HTML tags to keep the output simple and consistent.
  $output = "\n<dl>\n";
  foreach ($clients as $client) {
    $output .= '  <dt><a href="' . check_url($client->link) . '">' . check_plain($client->name) . '</a> - ' . check_plain($client->slogan) . "</dt>\n";
    $output .= '  <dd>' . strip_tags($client->mission) . "</dd>\n";
  }
  $output .= "</dl>\n";
  return $output;
}
Login or register to post comments