Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you want to add additional variables into the notification template, proceed as follows:

  • Navigate into the directory /modules/servers/servicenotifications/
  • Open the file defaults.php
  • At the function sn_extendVars you can return an associative array, whereby the key is the value which you insert into the notification template.

The WHMCS params array and the product type (addon or product) is passed as an argument. Based on the content of these arguments, you can create a customized content, e.g. fetch values from the database.

...