I’m adding new content to a node, but I’m stuck on what to put in #type. I know that when you’re dealing with a profile page for example, you would put
'#type' => 'user_profile_item'
but what to put for new content on a node?
$node->content['newc'] = array(
'#type' => , //what to put here for type
'#title' => t('New'),
'#value' => $newc,
}
If you want something displayed on the node page with a title, you’ll likely want to use ‘#type’ => ‘item’. Otherwise just to display some kind of output/markup the only thing you need is ‘#value’ => ‘the html or theme output here’.