Fail installing module

Discuss about Group-Office development here

Moderator: Developers

Posts: 55
Joined: Fri Nov 08, 2013 9:15 am

Fail installing module

Postby jamesarthur » Thu Apr 03, 2014 12:22 pm


I have a module and I want to be able to fail at the install stage if a config option hasn't been set by the user.

I've done some hunting round, and there is a problem, because even if the install method in GO_Base_Module fails, the module db record has already been entered, so when the system tries to load it crashes saying it can't find the tables for that module. But they are not there because the install failed!

Is there any way round this you can think of?
Site Admin
Site Admin
Posts: 8333
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch

Re: Fail installing module

Postby mschering » Fri Apr 04, 2014 1:25 pm

Theres should be a beforeinstall method implemented then. but at the moment this is not possible.
Best regards,

Merijn Schering

Who is online

Users browsing this forum: No registered users and 1 guest