Posted By

robotoverlord on 08/26/08


Tagged

print drupal multiple values cck


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

shrop


drupal cck print multiple values


 / Published in: PHP
 

prints and punctuates multiple cck values

  1. <?php
  2. $puntuacion = "";
  3. $i = 0;
  4. foreach ((array)$field_proyectos_otrosmiembros as $item) {
  5. $i = $i+1;
  6. if ($i < count($field_proyectos_otrosmiembros)) { $puntuacion = ", "; } else { $puntuacion = ". "; }
  7. print $item['view'].''.$puntuacion.' ';
  8. };
  9. ?>

Report this snippet  

You need to login to post a comment.