Commented out code in 7.x-3.39

Antispam module for Drupal
jonketo
Posts: 1
Joined: 23 Mar 2018, 16:10
Has thanked: 0
Been thanked: 0

Commented out code in 7.x-3.39

Unread post by jonketo » 23 Mar 2018, 16:14

Was it intentional that the following method was commented out in version 7.x-3.39?

/**
* Implements hook_form_BASE_FORM_ID_alter().
*/
function cleantalk_form_alter(&$form, &$form_state, $form_id)

I am trying to determine why spam is shown as caught in my dashboard, but continues to show up in Pardot. Looking at the order of form_alter hooks I see cleantalk way before Pardot, In looking through the code I noticed this method commented out.

Thanks

User avatar
SergeM
Posts: 108
Joined: 27 May 2016, 08:05
Has thanked: 10 times
Been thanked: 8 times
Contact:

Re: Commented out code in 7.x-3.39

Unread post by SergeM » 24 Mar 2018, 12:37

Hello.

Thank you for your request.

I have passed your question to our programmer staff.

They will reply to you when the working week starts. Please, wait.

Your CleanTalk Control Panel: [ https://cleantalk.org/my/ ].

Best regards.
———————
Technical Support
https://CleanTalk.org — Anti-Spam Modules for all CMS

ArtyomDavydov
Posts: 37
Joined: 18 Nov 2016, 10:38
Has thanked: 0
Been thanked: 4 times

Re: Commented out code in 7.x-3.39

Unread post by ArtyomDavydov » 26 Mar 2018, 10:55

Hello,

This method was commented a way before 3.39 version because of changing module logic. Anyway, _cleantalk_form_alter method is already getting forms of 3 types:



register cleantalk_form_user_register_form_alter

comment cleantalk_form_comment_form_alter, cleantalk_form_comment_node_webform_form_alter

contact form cleantalk_form_node_form_alter



So the entire spam of these types should be blocked.



Best regards.

Post Reply