acp_board_config_edit_add
. Is it as simple as the following code snippet?Code: Select all
public function acp_board_config_edit_add($event)
{
switch ($event['mode'])
{
case 'user_prune':
$event['display_vars'] = [
'title' => 'ACP_USER_PRUNE_SETTINGS',
'vars' => [
'legend1' => 'GENERAL_SETTINGS',
'user_prune_period' => ['lang' => 'USER_PRUNE_PERIOD', 'validate' => 'int:0', 'type' => 'text:4:4', 'explain' => true, 'append' => ' ' . $this->language->lang('DAYS')],
'user_prune_retain' => ['lang' => 'USER_PRUNE_METHOD', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true],
]
];
break;
}
}