Needs work
Project:
Mollom
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2014 at 17:50 UTC
Updated:
12 Jun 2014 at 16:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jojonaloha commentedAttached patch adds a check for a 'bypass access callbacks' key in the form info. You can see an example of how I would use this in a sandbox module I'm made to add OG integration: https://drupal.org/node/2283955
Here is the array structure:
The callback function would look like this:
Comment #2
eshta commentedBy returning here the users who would bypass mollom form protection are also missing on the delete/feedback integration that follows after the user_access if block. I don't believe you can equate those two. Looks like Mollom currently does this right below there in the bypass_access permission check and this also seems wrong. Maybe we can fix both at the same time?
I do wonder, however, if the scenario you describe can't be handled with the existing bypass_access permissions array. The idea is interesting though and I can see how it would make things more flexible. We'd need to add documentation to the mollom.api.php file as well a tests to ensure that callbacks are called.