1: <?php
2: 3: 4: 5: 6: 7: 8: 9:
10:
11: if (!defined('XOOPS_ROOT_PATH')) exit();
12:
13: require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CustomBlockDeleteForm.class.php";
14:
15: class Legacy_BlockUninstallForm extends Legacy_CustomBlockDeleteForm
16: {
17: function getTokenName()
18: {
19: return "module.legacy.BlockUninstallForm.TOKEN" . $this->get('bid');
20: }
21:
22: function update(&$obj)
23: {
24: parent::update($obj);
25: $obj->set('last_modified', time());
26: $obj->set('visible', false);
27: }
28: }
29:
30: ?>
31: