(Tutorial) Enabling New Modules Via Update.php

Tutorial : Enabling New Modules Via Update.php

I work with 3 other developers, all of whom have their own local sandbox of our site. Since we're constantly adding new modules, I found a simple way to enable a new module via another module's .install file. That way, all we have to do is run update.php when we update our source tree.

Here's a simple example update function:

<?php

function some_enabled_module_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysqli':
case 'mysql':

Read more..

Courtesy : nicklewis.org