Would something like that work too?
```
call_integration_hook('integrate_preparse_code', array(&$parts[$i]));
```
Seems a bit useless to pass $message for each $parts.
If $message may be interesting wouldn't be better to add a hook outside the loop?
Or maybe just one hook outside the hook passing both $message and $parts?