Revision: 20218
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 10, 2009 02:25 by level09
Initial Code
function render_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 .'"><div class="field-label-inline-first">' .$title .' </div> ' ; $output .= $field[$i]['view']; $output .='</div>'; } return ($output); }
Initial URL
Initial Description
Initial Title
Render a CCK Field
Initial Tags
drupal
Initial Language
PHP