AndyB
Well-known member
Hello,
I'm creating an add-on for XF2 that requires a custom alert.
The following code:
	
	
	
		
Produces this:

I searched for the 'upgrade_end' in the PHP code, Templates and Phrases, but I can't find where this is defined.
				
			I'm creating an add-on for XF2 that requires a custom alert.
The following code:
		PHP:
	
	$userId = 2;
$user = \XF::app()->find('XF:User', $userId);
$alertRepo = \XF::app()->repository('XF:UserAlert');
$alertRepo->alert($user, $user->user_id, $user->username, 'user', $user->user_id, 'upgrade_end');
	Produces this:

I searched for the 'upgrade_end' in the PHP code, Templates and Phrases, but I can't find where this is defined.
			
				Last edited: