core.acp_board_config_edit_add
. It's a config that I've placed in config_text
since it might become more than 255 characters.I've made the migration, that added a record to
phpbb_config_text
table. So far so good. In my listener I added this:
Code: Select all
if ($event['mode'] == 'post')
{
$display_vars = $event['display_vars'];
$add = array ('ger_magicogp_blacklist' => array('lang' => 'MOGP_BLACKLIST', 'validate' => 'string', 'type' => 'textarea:5:30', 'explain' => true));
$position = array_search('allowed_schemes_links', array_keys($display_vars['vars'])) + 1;
$display_vars['vars'] = array_merge(
array_slice($display_vars['vars'], 0, $position),
$add,
array_slice($display_vars['vars'], $position)
);
$event['display_vars'] = $display_vars;
}
phpbb_config_text
, yet I see a new record in phpbb_config
table. I kind of was afraid for something like that. Is there a way to specify that config vars should go in
phpbb_config_text
?