OnContentPrepareData for multiple plugins

105 views
Skip to first unread message

gcbooks

unread,
Aug 16, 2012, 3:56:58 PM8/16/12
to joomla-de...@googlegroups.com
Can I use OnContentPrepareData for multiple plugins? 

For example, I see 
$results = $dispatcher->trigger('onContentPrepareData', array('com_users.profile', $data));

in models/user.php

I want to trigger profile and registration plugins instead of just profile plugin. So, can I use

$results = $dispatcher->trigger('onContentPrepareData', array('com_users.profile, com_users.registration', $data));

Rouven Weßling

unread,
Aug 17, 2012, 8:25:32 AM8/17/12
to joomla-de...@googlegroups.com
It works the other way around, every form has a unique context but plug-ins can respond to multiple contexts.

Best regards
Rouven

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/5UFpZHxXDcAJ.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.

Reply all
Reply to author
Forward
0 new messages