I am making a module, each time user make content type and add fields to it, all its field values get rendered into static template dynamically.
$compfields = [node_load_multiple](array(), array('type' => $node_type)); return theme('component_fields',array('compfields'=>$compfields));
In template file, I am doing it like this way:
$compfields variable. Now my PROBLEM is : here I know that my content type has field named body which follow
print '<p>'.$value->body['und']['0']['value'].'</p>'; pattern to get rendered. But If a user add some additional field, how can I render that field to static html structure present in my template without knowing which type of field he is going to add.