install.php in FormLayer trunk, at main/install.php
| 1 | <?php |
| 2 | |
| 3 | namespace FormLayer; |
| 4 | |
| 5 | if(!defined('ABSPATH')){ |
| 6 | die('HACKING ATTEMPT!'); |
| 7 | } |
| 8 | |
| 9 | class Install{ |
| 10 | |
| 11 | static function activate(){ |
| 12 | update_option('formlayer_version', FORMLAYER_VERSION); |
| 13 | } |
| 14 | |
| 15 | static function deactivate(){ |
| 16 | delete_option('formlayer_version'); |
| 17 | delete_option('formlayer_settings'); |
| 18 | delete_option('formlayer_id_counter'); |
| 19 | } |
| 20 | |
| 21 | static function uninstall(){ |
| 22 | // delete options |
| 23 | } |
| 24 | |
| 25 | } |