/** * Hooks on the plugin's uninstall function. Removes all database tables and * configuration options for the class. * * @version 1.0 * @since 1.0 */ function uninstall_FOX_uKeyRing() { $cls = new FOX_uKeyRing(); try { $cls->uninstall(); } catch (FOX_exception $child) { // If the error is being thrown because the table doesn't exist, // just discard it if ($child->data['child']->data['numeric'] != 3) { throw new FOX_exception(array('numeric' => 1, 'text' => "Error dropping db table", 'file' => __FILE__, 'line' => __LINE__, 'method' => __METHOD__, 'child' => $child)); } } }