Sadik B
Well-known member
I noticed the load_class_mail event listener. Assuming that it works similar to how controllers are extended, I created a code event listener MyAddon_Listener::load_class_mail
However the class MyAddon_Mail is not extending the send() method. Am I doing this wrong? How can one go about extending the XenForo_Mail::send() method?
Thanks...
PHP:
public static function load_class_mail($class, array &$extend)
{
if ($class == 'XenForo_Mail')
{
$extend[] = 'MyAddon_Mail';
}
}
However the class MyAddon_Mail is not extending the send() method. Am I doing this wrong? How can one go about extending the XenForo_Mail::send() method?
Thanks...