public function startDatabaseRecreate() { $installer = new \util\EquipmentInstaller(); if ($installer->remove() && $installer->install()) { return '<p style="display:inline; color: green;">Database recreated!</p><br />'; } else { return '<p style="display:inline; color: red;">Failed to recreate database!</p><br />'; } }
/** * Uninstall hook. * * @param type $errors * @return boolean */ function pre_uninstall(&$errors) { $installer = new \util\EquipmentInstaller(); return $installer->remove(); }