Hi Gold,

I have made a patch that enables mollom on the form - and I would like to submit it into CVS. Could I be a co-maintainer?

I applied for CVS account, but they need your approval for proceeding.

Best regards; András

Comments

bryancasler’s picture

Can you share the patch here?

Gold’s picture

AndrasAcs is in the process of getting CVS access so they can commit the patch themselves. Will update again when it's ready.

delapohl’s picture

subscribe

ann_morris’s picture

Subscribe.

Gold’s picture

I'm finally back to this. Sorry it's been so long.

AndrasAcs, did you ever get your committer access sorted out? From our previous conversations you had trouble getting it for some reason. Regarding the patch, can you post it here and I'll add it in.

javdich’s picture

subscribe

ltrain’s picture

Is there a patch that enables Mollom? Can you please post it?

ltrain’s picture

I am trying to use hook_mollom_form_info(). It doesn't seem to be working for me.

Has anyone been able to get this working?

function anonymous_contact_mollom_form_info($form_id) {
  switch ($form_id) {
    case 'anonymous_contact_form':
      $form_info = array(
        'mode' => MOLLOM_MODE_CAPTCHA, 
        'mapping' => array(
          'post_title' => 'subject', 
          'author_name' => 'name', 
          'author_mail' => 'from',
        ),
      );
      return $form_info;
  }
}
ltrain’s picture

I have it working now - you need two functions: hook_mollom_form_info() and hook_mollom_form_list()

/**
 * Implementation of hook_mollom_form_list().
 */

function anonymous_contact_mollom_form_list() {
  $forms['anonymous_contact_form'] = array(
    'title' => t('Anonymous Contact Form'),
    'entity' => 'anonymous_contact_mail',
  );
  return $forms;
}

/**
 * Implementation of hook_mollom_form_info().
 */

function anonymous_contact_mollom_form_info($form_id) {
  switch ($form_id) {
    case 'anonymous_contact_form':
      $form_info = array(
        'mode' => MOLLOM_MODE_CAPTCHA, 
        'mapping' => array(
          'post_title' => 'subject', 
          'author_name' => 'name', 
          'author_mail' => 'from',
        ),
      );
      return $form_info;
  }
}