Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291521

module_enable() not working when triggered through hook_update_N

$
0
0

A standard practice of mine is to use hook_update_N() to trigger installation of new modules, e.g.:

<?php
function mymodule_update_7100() {
 
$modules = array('new_module', 'another_module');
 
module_enable($modules);
}
?>

Recently, though, probably since around 7.19, this hasn't been working - the modules aren't enabled and they must be manually enabled instead. For comparison sake, using Drush to enable the modules does still work.

I have not yet tried replicating this on a bare core installation, to verify it isn't something else causing the problem, but I will.


Viewing all articles
Browse latest Browse all 291521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>