Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:$this->DelegateParameters['EmailBody'] = &$EmailBody;$this->DelegateParameters['Email'] = &$e;function ModifyMessage(&$Context) {
$e = &$Context->DelegateParameters['Email'];
$AffectedUser = &$Context->DelegateParameters['AffectedUser'];
Switch ($AffectedUser->Role) {
'Douchebag':
$e->Body .= 'Be nice or your new icon stays!!';
break;
'Master Administrator':
$e->Body .= 'Play nice while I am out of town.';
break;
}
}
$Context->AddToDelegate('ModifyMessage','UserManager','PreRoleChangeNotification')(warning: typed from known unreliable memory of syntax, all untested code)
1 to 6 of 6