diff --git a/mollom.module b/mollom.module index 8521fa6..7eab1e4 100644 --- a/mollom.module +++ b/mollom.module @@ -4317,3 +4317,40 @@ function _mollom_actions_access_callbacks($entity_type, $entities) { /** * @} End of "name mollom_action". */ + +/** + * @name mollom_simplenews Simplenews module integration for Mollom. + * @{ + */ + +/* + * Implements hook_mollom_form_list() + */ +function simplenews_mollom_form_list() { + $forms['simplenews_subscriptions_multi_block_form'] = array( + 'title' => t('Simplenews multi subscription form') + ); + return $forms; +} + +/** + * Implements hook_mollom_form_info(). + */ +function simplenews_mollom_form_info($form_id) { + switch ($form_id) { + case 'simplenews_subscriptions_multi_block_form': + $form_info = array( + 'mode' => MOLLOM_MODE_ANALYSIS, + 'elements' => array( + ), + 'mapping' => array( + 'author_mail' => 'mail', + ), + ); + return $form_info; + } +} + +/** + * @} End of "name mollom_simplenews". + */