plugins->moduleExists('Uninstaller')) { return false; } Uninstaller::instance() ->addUserAction( 'settings', 'delete_all', My::id() ) ->addUserAction( 'plugins', 'delete', My::id() ) ->addUserAction( 'versions', 'delete', My::id() ) ->addDirectAction( 'settings', 'delete_all', My::id() ) ->addDirectAction( 'plugins', 'delete', My::id() ) ->addDirectAction( 'versions', 'delete', My::id() ) ; // no custom action return false; } }