Revision: 20219
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 10, 2009 02:27 by level09
Initial Code
function render_image_field($node,$name,$title=null,$divclass=null,$limit=0,$start=0) { $field_name = 'field_'.$name; $field = $node->{$field_name}; $limit = ($limit == 0) ? count($field): $limit; for ($i=$start; $i < $limit; $i++) { $output .= '<div class="field field-item'. ' '.$divclass .'"> ' ; $output .= $field[$i]['view']; $output .= '<span>' .$field[$i]['data']['description'] .'</span>'; $output .='</div>'; } return ($output); }
Initial URL
Initial Description
Initial Title
Render a CCK Image Field
Initial Tags
drupal
Initial Language
PHP