Domain Access uninstall and update questions

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by agentrickard on November 10, 2007 at 2:23am

OK, beta6 is out and the release is looking pretty good.

But I introduced the Domain Prefix module -- it creates a UI for dynamic table prefixing. So, for example, each of your subdomains can have a different watchdog table. The $db_prefix array is dynamically set on bootstrap.

Two big issues -- notwithstanding the lack of pgSQL support, which I'll get to shortly.

  • I have not found a way to run a function any time hook_uninstall() is run.
    Attempts to add a #submit handler using hook_form_alter() failed. As a resut
    I may have to create an admin page for uninstalling domain_prefix tables.

This is important, because if you uninstall a module that has prefixed tables, I need to delete those tables as well.

  • I also failed to find a way to automate the update.php process -- hook_form_alter()
    also fails to add a #submit handler in that case.

Same thing here; the update.php script works for each subdomain, but you should not have to run them all manually.

Anyone know how these two issues are generally handled in a MultiSite setup?

Comments

core limitations

Posted by moshe weitzman on November 21, 2007 at 8:33pm

i think it is really dumb that we don't notify all modules when a module installs and uninstalls. please submit a patch. there is probably an existing issue. this bites lots of people when they don interetsing stuff.

i am kind of surprised that #submit doesn't work on the update form and on the uninstall form. it might be worth diving in to see whats happenning.

i will also post in the drush issue.

Well

Posted by agentrickard on November 22, 2007 at 3:07am

It may simply be that I'm missing something.... Will try to investigate further.

I think the problem with update.php is that some of the core actions are not in a function. They are naked PHP at the bottom of the script. My guess is that this breaks FormAPI in some way.

--
http://ken.therickards.com/
http://savannahnow.com/user/2
http://blufftontoday.com/user/3

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /