I'm currently building a module that allows customers to receive an email notification once a Network Issue is opened/edited and that issue affects one or more of their products. Currently, my config looks like this:
function networkissuenotification_config(){return[// Display name for your module'name'=>'Network Issue Notification',// Description displayed within the admin interface'description'=>'This module sends an email to the client if a network issue has been created or edited.',// Module author name'author'=>'Dennis Hermannsen',// Default language'language'=>'english',// Version number'version'=>'1.0','fields'=>[// a text field type allows for single line text input'Email Template Name'=>['FriendlyName'=>'Email Template Name','Type'=>'text','Size'=>'25','Default'=>'Network Issue Email','Description'=>'This field defines which email the client should receive.',],]];}
How would I use the 'Email Template Name' variable in hooks.php? I can use $vars['Email Template Name'] in the admin output, but $vars is completely empty when used in hooks.php.
Question
DennisHermannsen
Hi.
I'm currently building a module that allows customers to receive an email notification once a Network Issue is opened/edited and that issue affects one or more of their products. Currently, my config looks like this:
How would I use the 'Email Template Name' variable in hooks.php? I can use $vars['Email Template Name'] in the admin output, but $vars is completely empty when used in hooks.php.
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.