Return to Snippet

Revision: 18736
at October 6, 2009 19:42 by lexx


Initial Code
<?php if ($og_groups): ?>
 
 
 
    <?php
 
      $og_projects = array();
 
      foreach ($node->og_groups_both as $key => $name) {
 
        $og_projects[] = l($name,'node/'.$key,array('class'=>'terms'));
 
      }
 
      $og_projects = implode(', ',$og_projects);
 
    ?>          
 
 
 
      <span class="terms terms-inline">project: <?php print $og_projects; ?> </span> 
 
 
 
    <?php endif; ?>

Initial URL

                                

Initial Description

                                

Initial Title
Print OG Groups

Initial Tags
drupal

Initial Language
PHP