Hooks implementation in Joomla and Standalone