From Drupal-Devel@iStyledThis.nl Thu Apr 14 11:28:47 2005 From: Stefan Nagtegaal To: development@drupal.org Subject: [drupal-devel] Improve Drupal themability Date: Thu, 14 Apr 2005 11:28:48 +0000 Message-ID: <8797f8b258a19bcff7e927895a76f6f7@iStyledThis.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1876248561190270552==" --===============1876248561190270552== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit All, to improve theming of drupal I would like to introduce two new functions, which are theme_list() and theme_list_item().. function theme_list($items = array(), $id) { if (isset($items)) { $output .= ''; } return $output; } function theme_list_item($item, $class = NULL) { return '
  • '. $item .'
  • '; } These two functions will help us, theme drupal. Every list is getting a unique id like $module-$method. For example we get: With these two functions we can get all hardcoded lists (