--- signit.install 2007-08-23 14:24:08.000000000 -0400 +++ ../signit.install 2007-09-10 23:36:09.000000000 -0400 @@ -2,8 +2,10 @@ // $Id: signit.install,v 1.2.2.1 2007/08/23 18:24:08 robeano Exp $ function signit_install() { + drupal_set_message(t('Beginning installation of signit module.')); //added by Christian Fernandez switch ($GLOBALS['db_type']) { case 'mysql': + case 'mysqli': //added by Christian Fernandez so it works under mysqli mysql databases db_query(" CREATE TABLE {signit} ( `nid` int(11) NOT NULL default '0', @@ -40,8 +42,19 @@ KEY `nid` (`nid`) ) /*!40100 DEFAULT CHARACTER SET utf8 */; "); + $success = TRUE; // added by Christian Fernandez ask if did it install ok break; + default: + drupal_set_message(t('Unsuported database')); //added by Christian Fernandez spills this if db not suported } + +// check success or not and reports + + if ($success) { + drupal_set_message(t('The module installed tables successfully.')); + } else { + drupal_set_message(t('The instalation of the signit module was unsuccessful.')); + } } function signit_uninstall(){