[TYPO3-shop] Hook for own markers

Franz Holzinger franz at fholzinger.com
Wed Mar 21 18:37:27 CET 2007


Hello Tapio,

> how the hook could actually change the array $markerArray?
> 
> Should it be rather
> if (method_exists($hookObj, 'addGlobalMarkers')) {
>                 $markerArray=$hookObj->addGlobalMarkers($markerArray);
>          }
> 
> and in the end is
> return $markerArray;
> that returns changed $markerArray.

I do not want to pass the maybe big array as a return parameter.

Use it like

class myGlobalMarkerHookClass {

function addGlobalMarkers(&$markerArray)	 {

    $markerArray['###MY_MARKER###'] = 'this is my marker';

    return;
}
}



Greets,

Franz




More information about the TYPO3-project-tt-products mailing list