[TYPO3-dev] Problem with a hook definition

Tapio Markula tapio.markula at xetpoint.fi
Thu Jan 3 13:36:07 CET 2008


Tapio Markula
> 
> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][]= 
> array('COA','EXT:user_directmailsubcriptions/class.user_directmailsubcriptions.php:&user_directmailsubcriptions'); 
> 
> 
> 
> But what should I uses as the name of the method?


I found from the Berhard's attachment

     // Application defined cObjects
+                foreach ($this->cObjHookObjectsArr as $cObjName => 
$hookObj)    {
+                    if (($name===$cObjName) && method_exists($hookObj, 
'cObjGetSingleExt')) {
+                        $content .= $hookObj->cObjGetSingleExt($name, 
$conf, $this);
+                        $hooked = true;
+                    }
+                }

apparently 'cObjGetSingleExt' is the correct name of the needed method




More information about the TYPO3-dev mailing list