root/donation/files/lib/system/event/listener/DonationOptionFormListener.class.php @ 104

Revision 104, 0.6 kB (checked in by d0nut, 6 years ago)

donation system changed

Line 
1<?php
2// wcf imports
3require_once(WCF_DIR.'lib/system/event/EventListener.class.php');
4
5/**
6 * donation form
7 *
8 * @author      Torben Brodt
9 * @package     de.easy-coding.wcf.donation
10 * @license     GNU General Public License <http://opensource.org/licenses/gpl-3.0.html>
11 */
12class DonationOptionFormListener implements EventListener {
13
14        /**
15         * @see EventListener::execute()
16         */
17        public function execute($eventObj, $className, $eventName) {
18                if ($eventObj->activeCategory == 'donation' && $eventName == 'assignVariables') {
19                        WCF::getTPL()->append(
20                                'additionalFields', WCF::getTPL()->fetch('donations')
21                        );
22                }
23        }
24}
25?>
Note: See TracBrowser for help on using the browser.