Code:
<?php
namespace Xencafe\...\XF\Entity;
class ThreadField extends XFCP_ThreadField
{
public static function getStructure(Structure $structure)
{
self::setupDefaultStructure(
$structure,
'xf_thread_field',
'XF:ThreadField',
[
'groups' => ['before', 'after', 'thread_status','header'],
'has_user_group_editable' => true,
'has_wrapper_template' => true,
]
);
$structure->relations['ForumFields'] = [
'entity' => 'XF:ForumField',
'type' => self::TO_MANY,
'conditions' => 'field_id'
];
return $structure;
}
}
To extend groups and having a new position for my fields, i have solved it by
replace the complete $structure, but there is a shorter way, please?