Get level of notification in Cpanel::iContact::Provider::Example

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Hi,

We don't currently include the notification level in the notification object :( I'll file a case to have that added.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Case CPANEL-15504 was filed to include the notification priority.

It is currently possible to use the human-friendly form of the notification priority by accessing CPANEL.module_event_importance_description in your template. That provides a textual form of the level, which may be localized. I've requested we provide the numerical form along with the human-friendly version.
 

Bruno Morais

Member
Jan 6, 2018
5
1
3
Portugal
cPanel Access Level
Root Administrator
Hi @nicoalonsop,
Did you manage to make this module notification?
I'm also trying to do it. The Schema part is done but for Provider I cant make tests on the module. In the WHM Contact Manager Tab In the Slack there is no test link. Perl is not my best language.
Could you please give some help?

Thanks,
Regards,
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Hi Bruno,

As of cPanel & WHM version 68, the base notification class provides a notification_priority function. That function returns the numerical value of the notification importance.