t('Comment form'), 'mode' => MOLLOM_MODE_ANALYSIS, 'bypass access' => array('administer comments'), 'entity' => 'comment', 'elements' => array( 'subject' => t('Subject'), 'body' => t('Body'), ), 'mapping' => array( 'post_id' => 'cid', 'post_title' => 'subject', 'author_name' => 'name', 'author_mail' => 'mail', 'author_url' => 'homepage', ), ); // Mymodule's user registration form. $forms['mymodule_user_register'] = array( 'title' => t('User registration form'), 'mode' => MOLLOM_MODE_CAPTCHA, 'entity' => 'user', 'mapping' => array( 'post_id' => 'uid', 'author_name' => 'name', 'author_mail' => 'mail', ), ); return $forms; } /** * Alter registered information about forms that can be protected by Mollom. * * @param &$form_info * An associative array containing protectable forms. See * hook_mollom_form_info() for details. */ function hook_mollom_form_info_alter(&$form_info) { if (isset($form_info['comment_form'])) { $form_info['comment_form']['elements']['mymodule_field'] = t('My additional field'); } }