List

Drupal6 table list

  1. mysql> SHOW TABLES;
  2. +--------------------------+
  3. | Tables_in_drupal6        |
  4. +--------------------------+
  5. | access                   |
  6. | accesslog                |
  7. | aggregator_category      |

PHP help, printing a list instead of a table

  1. function template_preprocess_forum_topic_list(&$variables) {
  2.   global $forum_topic_list_header;
  3.  
  4.   // Create the tablesorting header.
  5.   $ts = tablesort_init($forum_topic_list_header);
  6.   $header =

Custom taxonomy list with nested children in their own div. The same ID variable, +1 each loop, is accessible by parent and nest

  1. <?php
  2. function private_get_taxparent($vocabid, $father = 0) {
  3.    $pieces = array();
  4.    $theterms = taxonomy_get_tree($vocabid, $father, -1, 1);
  5.    foreach ( $theterms as $theterm ) {

div to list

  1. <?php if ($field_name == "field_players_0809") : ?>
  2. <?php if (!$field_empty) : ?>
  3. <div class="field field-type-<?php print $field_type_css ?> field-<?php print $field_name_css ?>">
Syndicate content