Index: mollom.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/mollom/mollom.install,v retrieving revision 1.5 diff -u -p -r1.5 mollom.install --- mollom.install 22 Dec 2009 08:10:34 -0000 1.5 +++ mollom.install 2 Jan 2010 22:45:25 -0000 @@ -101,35 +101,6 @@ function mollom_schema() { } /** - * Implements hook_install(). - */ -function mollom_install() { - // Install default form configuration for enabled, supported modules. - foreach (module_list(FALSE, FALSE) as $module) { - drupal_load('module', $module); - } - drupal_load('module', 'mollom'); - - $form_info = mollom_get_form_info(); - $query = db_insert('mollom_form') - ->fields(array('form_id', 'mode', 'fields', 'module')); - foreach ($form_info as $form_id => $info) { - if (!empty($info['mode'])) { - $info['fields'] = array_keys($info['elements']); - // Upon installation, our own schema is not available yet, so we cannot - // use mollom_form_save(), resp. drupal_write_record(). - $query->values(array( - $info['form_id'], - $info['mode'], - serialize($info['fields']), - $info['module'], - )); - } - } - $query->execute(); -} - -/** * Implements hook_uninstall(). */ function mollom_uninstall() { @@ -311,4 +282,3 @@ function mollom_update_7000() { ->condition('form_id', 'contact_mail_user') ->execute(); } -