Fixed #2601, the callback functions expect param 1 to be a reference to the $config
Fixed docblock