1
Hi,
I'm trying to get onInstall and onUninstall in module_version.php working. I'm testing with 2.0.6.
I've added the following lines:
$modVersion['onInstall'] = 'installfunctions.php';
$modVersion['onUninstall'] = 'installfunctions.php';
Made a file in my modules root directory called installfunctions.php, which contains these functions:
function xoops_module_install_skeleton(&$module)
function xoops_module_uninstall_skeleton(&$module)
(I also tried with $module, instead of &$module, to no awail.)
However, my functions are never executed.
I've tried to trace the problem, and find that in /modules/system/admin/modulesadmin/modulesadmin.php both of the following lines apparently fails
$install_script = $module->getInfo('onInstall');
$install_script = $module->getInfo('onUninstall');
.. since $install_script becomes an empty sting.
Is it me thats doing something wrong?
Any help is appriciated!
Best regards,
--
Daigoro