Skip to content

Instantly share code, notes, and snippets.

@gunjanpatel
Created April 22, 2015 07:24
Show Gist options
  • Save gunjanpatel/fefdd5cd5929cf04447d to your computer and use it in GitHub Desktop.
Save gunjanpatel/fefdd5cd5929cf04447d to your computer and use it in GitHub Desktop.
trigger joomla user plugin from your component

Using following code you can trigger any joomla user plugin event in your component

JPluginHelper::importPlugin('user', 'contactcreator');

JDispatcher::getInstance()->trigger(
	'onUserAfterSave', 
	array(
		$user, 
		$isnew, 
		$success, 
		$msg
	)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment