array( // key for "user registration" event 'actions' => array( // we link this event to a bunch of functions that will be triggered when the event is fired 'event_send_mail' // don't forget to actually write this function in the events.lib.php file ), 'self_sent' => false, // this key states that we can't add user to this event through the admin panel 'name_lang_var' => 'PortalHomepageEdited', 'desc_lang_var' => 'PortalHomepageEdited', 'available_keyvars' => array (// keys used for the mail template 'url' => 'portal', 'sitename' => 'sitename', 'firstname' => 'firstname', 'lastname' => 'lastname', 'username' => 'username', 'usermail' => 'usermail', 'password' => 'password', 'user_lang' => 'language', 'admin_name' => 'administrator_name', 'admin_surname' => 'administrator_surname', 'admin_phone' => 'administrator_phone', 'admin_email' => 'administrator_email', ) ), 'user_registration' => array( // key for "user registration" event 'actions' => array( // we link this event to a bunch of functions that will be triggered when the event is fired 'event_send_mail' // don't forget to actually write this function in the events.lib.php file ), 'self_sent' => true, // this key states that we can't add user to this event through the admin panel 'name_lang_var' => 'UserRegistrationTitle', 'desc_lang_var' => 'UserRegistrationComment', 'available_keyvars' => array (// keys used for the mail template 'url' => 'portal', 'sitename' => 'sitename', 'firstname' => 'firstname', 'lastname' => 'lastname', 'username' => 'username', 'usermail' => 'usermail', 'password' => 'password', 'user_lang' => 'language', 'admin_name' => 'administrator_name', 'admin_surname' => 'administrator_surname', 'admin_phone' => 'administrator_phone', 'admin_email' => 'administrator_email', ) ), ); //@include 'events.conf.local.php';