[TYPO3-dev] Naming conventions in hooks

Tapio Markula tapio.markula at xetpoint.fi
Fri Oct 26 18:01:42 CEST 2007


Hi

I know that class names of hook files should start with 'user_' or 'tx_'

I made a hook

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['addCCS']

I tried to use method 'addCSS' ($hookObj->addCSS(...)) but it didn't work.
I changed the name of the method as 'addCSSforFE' and that worked.

Must the method be always different as the array item of the hook?

Is there other restrictions?




More information about the TYPO3-dev mailing list