Revision: 27232
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 31, 2010 10:57 by discipolo
Initial Code
/** * remove divs from multiple fields when grouping terms * */ //this might cause errors cause we only want to avoid them for the speaker field. also this should be changed to an implode to get the list right function MYtheme_content_view_multiple_field($items, $field, $values) { if ($field['field_name'] == 'field_speaker'){ $output = implode(',', $items); return $output;} else {$output = ''; $i = 0; foreach ($items as $item) { if (!empty($item) || $item == '0') { $output .= '<p class="field-item field-item-'. $i .'">'. $item .'</p>'; $i++; } } return $output;} }
Initial URL
http://drupalcontrib.org/api/function/theme_content_view_multiple_field
Initial Description
change the display of cck grouped terms to implode (commas, no divs) for a cerain field only
Initial Title
function TF2007Theme_content_view_multiple_field
Initial Tags
drupal
Initial Language
PHP