Integrate your custom Drupal forms with Mollom CAPTCHA spam protection

ReCAPTCHA allows your to add spam protection to your custom Drupal forms without any further coding work.

However, if you want to integrate with Mollom's CAPTCHA protection, the following code snippet will do just the trick, simple and easy.

/**
* Implements hook_mollom_form_list().
*/
function YOUR_MODULE_mollom_form_list() {
  $forms['YOUR_MODULE_CUSTOM_FORM_ID'] = array(
    'title' => t('My custom form'),
  );
  return $forms;
}

/**
* Implements hook_mollom_form_info().
*/
function YOUR_MODULE_mollom_form_info() {
  $form_info = array(
    'mode' => MOLLOM_MODE_CAPTCHA,
  );
  return $form_info;
}