I want to include the created property of my entity, in the Inline entity form - Multiple values widget. But I don't want to display the timestamp, I want to show a more readable date format, by using the
format_date() function (or any other function for that matter).
Add an option in the table fields (the array returned from the
tableFields() controller function), that will allow a function to alter the output.
So a field definition could look like the following:
$fields['created'] = array(
'type' => 'property',
'label' => t('Created'),
'weight' => 2,
'process' => 'format_date' // The new output altering function
I don't know if process is the right word for this option, but it's what I've been using in my own altered IEF version.
Inject the function in the
theme_inline_entity_form_entity_table(), before the actual data is added to the