Folks - I'm trying to create a custom field view with custom content that utilises the standard theme_field
template, to display in a node template.
I've tried to call the function programmatically e.g:
$field_vars = array(
'title_attributes' => 'test123',
'label' => t('custom field label'),
'items' => array('<p>This is a test</p>'),
'classes' => 'test',
'attributes' => FALSE
);
$my_field = theme('field', $field_vars);
print $my_field;
It returns the template, but none of the $field_vars
are being used. Has anyone done something similar?