Advertisement
theitd

Payplans fire content events

Nov 15th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. //create pdf file
  2. $contents.= "</body></html>";
  3.  
  4. // Fire event to customoize content
  5. // onContentPrepare($context, &$article, &$params, $page = 0)
  6. $article = new stdClass();
  7. $article->text = $contents;
  8. $param = null;
  9. $args = array();
  10. $args[] = array('com_payplans.invoice', &$article, &$param, 0);
  11.  
  12. JPluginHelper::importPlugin('content');
  13. XiHelperPlugin::trigger('onContentPrepare', $args);
  14. $contents = $article->text ;
  15. // Event Done.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement