drupal cck print multiple values


/ Published in: PHP
Save to your folder(s)

prints and punctuates multiple cck values


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.