photogallery :: UnInstallDB: Bitrix method

      
<?php 
//  photogallery :: UnInstallDB()
//  /dist/bitrix/modules/photogallery/install/index.php:50

    
function UnInstallDB()
    {
        
UnRegisterModuleDependences("iblock""OnBeforeIBlockElementDelete""photogallery""CPhotogalleryElement""OnBeforeIBlockElementDelete");
        
UnRegisterModuleDependences("iblock""OnAfterIBlockElementAdd""photogallery""CPhotogalleryElement""OnAfterIBlockElementAdd");
        
UnRegisterModuleDependences("search""BeforeIndex""photogallery""CRatingsComponentsPhotogallery""BeforeIndex");
        
UnRegisterModuleDependences("im""OnGetNotifySchema""photogallery""CPhotogalleryNotifySchema""OnGetNotifySchema");
        
UnRegisterModuleDependences("socialnetwork""OnSocNetGroupDelete""photogallery""\\Bitrix\\Photogallery\\Integration\\Socialnetwork\\Group""onSocNetGroupDelete");
        
UnRegisterModule("photogallery");
        return 
true;
    }