false, 'show_list_messages' => true, ) ).'\', \'Configuration for SmartAlbums plugin\' ) ;'); } function plugin_activate() { global $conf; if (!isset($conf['SmartAlbums'])) { pwg_query(' INSERT INTO `' . CONFIG_TABLE . '` VALUES ( \'SmartAlbums\', \''.serialize(array( 'update_on_upload' => false, 'show_list_messages' => true, ) ).'\', \'Configuration for SmartAlbums plugin\' ) ;'); } } function plugin_uninstall() { global $prefixeTable; pwg_query('DROP TABLE `' . $prefixeTable . 'category_filters`;'); pwg_query('ALTER TABLE `' . IMAGE_CATEGORY_TABLE . '` DROP `smart`;'); pwg_query('DELETE FROM `' . CONFIG_TABLE . '` WHERE param = \'SmartAlbums\';'); } ?>