I seem to recall seeing an issue similar to this previously, but now I can't find it... Please mark as duplicate, if that is the case.

Anyway, we have a site that generates weekly reports sent to internal mailing lists. This site is under regular development by a fairly large distributed team. When it gets cloned, unless the dev remembers to turn off these reports n the newly created site, we end up with duplicate reports being sent out.

It would be useful to have a feature that lets us disable certain modules on cloned sites. I suspect this would be fairly easy to accomplish with something like a hook_post_site_clone_task().

Comments

mvc’s picture

i can see this being useful, but in the case of disabling email messages the devel module could do something similar. at admin/settings/devel you can set the smtp library to devel, which means that the site won't send any email at all (it will just write to the log).

to enable this, you could run
drush vset smtp_library sites/all/modules/contrib/devel/devel.module
or add to sites/mysite.com/local.settings.php a line like
$conf['smtp_library'] = "sites/all/modules/contrib/devel/devel.module";

this could even be put into /var/aegir/config/includes/global.inc with a check for hostnames that include the string "devel" or some such.

anarcat’s picture

Status: Active » Closed (won't fix)

This is better done through a custom module, or as mvc put it, through specific settings... Closing.