$smcFunc['db_insert']('replace', '{db_prefix}portamx_blocks',array('id' => 'int','side' => 'string','pos' => 'int','active' => 'int','cache' => 'int','blocktype' => 'string','acsgrp' => 'string','config' => 'string','content' => 'string',),$block,array('id'));the indexed col is id.I'v set a breakpoint just before the delete query starts.In the attached images you can see the data in the variables.Image1 is the original code (not work)Image2 is the modificated code they I post (works)

array('variable')Though, out of curiosity: why are you adding hooks with an insert and not through add_integration_function and why are you updating the SMF settings table with an insert and not with updateSettings?