query("CREATE TABLE {embedded_videos} ( `id` int(9) NOT NULL auto_increment, `embed_code` varchar(2048) DEFAULT NULL, `source` varchar(64) DEFAULT NULL, `item_id` int(9) NOT NULL, PRIMARY KEY (`id`), KEY (`item_id`, `id`)) DEFAULT CHARSET=utf8;"); module::set_version("embed_videos", 2); //exec("cd modules/gallery/controllers/; ln -s ../../embed/controllers/embeds.php embeds.php"); } static function deactivate() { } static function uninstall() { $db = Database::instance(); $db->query("DROP TABLE IF EXISTS {embedded_videos};"); module::delete("embed_videos"); } }