Return to Snippet

Revision: 27232
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) {
($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>';
  return $output;}

Initial URL

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

Initial Language