theme_client_list

Versions
4.7 – 5
theme_client_list($clients)

Theme a client list.

Code

modules/drupal.module, line 225

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

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.