I attempted to remove Mollom in the way described in the Getting Started Guide (http://www.drupalgap.org/node/217) but kept getting an error saying "Wrong user name or password" with the account not being created. It wasn't until I changed the following code:

/**
 * An after build handler to remove captcha from forms.
 */
function my_module_form_captcha_after_build($form, &$form_state) {
  // ReCAPTCHA
  if (isset($form['captcha'])) { unset($form['captcha']); }
  // Mollom
  if (isset($form['mollom'])) { unset($form['mollom']); }
}

to:

/**
 * An after build handler to remove captcha from forms.
 */
function my_module_form_captcha_after_build($form, &$form_state) {
  // ReCAPTCHA
  if (isset($form['captcha'])) { unset($form['captcha']); }
  // Mollom
  if (isset($form['mollom'])) { unset($form['mollom']); }
  return $form; //add this line to work!
}

that I was able to register an account through my DrupalGap test app.

Comments

tyler.frankenstein’s picture

Status: Active » Closed (fixed)

Thanks, I've updated the documentation:

http://www.drupalgap.org/node/217

Next time, feel free to login and add/update pages as you see fit, thanks!