[TYPO3-dev] tslib_fe-contentStr-hook

Steffen Kamper info at sk-typo3.de
Sat Oct 18 09:28:48 CEST 2008


Hi,

Dmitry Dulepov schrieb:
> Hi!
> 
> Steffen Kamper wrote:
>> i have an idea for a more simple solution: pass the content to the 
>> hook as second param, then in the hook everything could be done with 
>> it, small change but all freedom for content manipulation.
> 
> This will be a new hook. Existing hooks are static in what they return 
> or get. It is safe to add a parameter to an array but not safe to make 
> hook return something. There can be extensions, who use this hook and do 
> not return anything.
> 

i know. But here it can be done simple, as there is only an array passed:
$_params['search'] = $search,
$_params['replace'] = $replace,

so it's no problem to add content
$_params['content'] = $content,

other who using this hook won't fail as it works same way as before.

vg Steffen




More information about the TYPO3-dev mailing list