Contributions API

mollom.module

Version

1.2.2.11 (checked in on 2008/05/09 at 18:55:21 by dries)

Constants

Namesort iconDescription
MOLLOM_ANALYSIS_HAM
MOLLOM_ANALYSIS_SPAM
MOLLOM_ANALYSIS_UNKNOWN
MOLLOM_ANALYSIS_UNSURE
MOLLOM_API_VERSION
MOLLOM_ERROR
MOLLOM_FALLBACK_ACCEPT
MOLLOM_FALLBACK_BLOCK
MOLLOM_MODE_ANALYSIS
MOLLOM_MODE_CAPTCHA
MOLLOM_MODE_DISABLED
MOLLOM_REDIRECT
MOLLOM_REFRESH

Functions

Namesort iconDescription
mollomCall a remote procedure at the Mollom server. This function will automatically add the information required to authenticate against Mollom.
mollom_admin_settings
mollom_captchaAn AJAX callback to retrieve a CAPTCHA.
mollom_commentThis function implements the _comment hook and is called when a comment is inserted.
mollom_comment_admin_overview_submit
mollom_data_comment_formThis function will be called by mollom_validate to prepare the XML-RPC data from the comment submission form's $form_state['values'] ...
mollom_data_contact_mail_pageThis function will be called by mollom_validate to prepare the XML-RPC data from the comment submission form's $form_state['values'] ...
mollom_data_contact_mail_userThis function will be called by mollom_validate to prepare the XML-RPC data from the comment submission form's $form_state['values'] ...
mollom_data_node_formThis function will be called by mollom_validate to prepare the XML-RPC data from the comment submission form's $form_state['values'] ...
mollom_form_alterThis function intercepts all forms in Drupal and Mollom-enables them if necessary.
mollom_form_processThis is a helper function to insert the CAPTCHA into the form. We restore the context at the right time (which happens to be when hook _form_process is called).
mollom_form_valueThis is a helper function to help insert the CAPTCHA into the form. It's quite an ugly hack due to Drupal 6's inability to handle dynamic forms. Let's try to fix this in Drupal 7 and beyond.
mollom_get_dataHelper function used to load a Mollom session ID from the database.
mollom_helpImplementation of hook_help().
mollom_linkImplementation of hook_link().
mollom_mail_alterThis function adds a 'report as inappropriate' link to the e-mails that are sent by the contact module.
mollom_menuImplementation of hook_menu().
mollom_nodeapiThis function implements the _nodeapi hook and is called when a node is inserted.
mollom_node_admin_overview_submit
mollom_permImplementation of hook_perm().
mollom_report_commentThis function is used to report a comment as feedback and to delete it.
mollom_report_comment_submitThis function is used to delete a comment and to optionally send feedback to Mollom.
mollom_report_contactThis function is used to report a contact form message as inappropriate.
mollom_report_contact_submitThis function is used to report a contact form message as inappropriate.
mollom_report_nodeThis function is used to delete a node and to optionally send feedback to Mollom.
mollom_report_node_submitThis function is used to delete a node and to optionally send feedback to Mollom.
mollom_set_dataHelper function used to store a Mollom session ID into the database.
mollom_validate_analysisThis the a form API validator function that will be called to perform text analysis on a form.
mollom_validate_captchaThis the a form API validator function that will be called to check a CAPTCHA on a form.
_mollom_authenticationThis function generate an array with all the information required to authenticate against Mollom. To prevent that requests are forged and that you are impersonated, each request is signed with a hash computed based on a private key and a timestamp.
_mollom_data_contact_mailThis function will be called by mollom_validate to prepare the XML-RPC data from the comment submission form's $form_state['values'] ...
_mollom_fallback
_mollom_feedback_optionsReturn a list of the possible feedback options for content.
_mollom_get_modeGiven a form ID, this function will return the strategy that is used to protect this form. Could be MOLLOM_MODE_DISABLED (none), MOLLOM_MODE_CAPTCHA (CAPTCHAs only) or MOLLOM_MODE_ANALYSIS (text analysis with smart CAPTCHA support).
_mollom_get_openidA helper function that returns the OpenID identifiers associated with the specified user account.
_mollom_insert_captchaThis function inserts a CAPTCHA into the form. It is called during the construction of the form, just before the form is rendered.
_mollom_insert_session_idThis function inserts a Mollom session ID into the form. It is called during the construction of the form, just before the form is rendered.
_mollom_protectable_formsThis function lists all the forms that you can protect with Mollom. If you want to protect additional forms with Mollom add the form ID to this list.
_mollom_register_captchaThis is a helper function that registers the form data so that on the next page, we can insert the CAPTCHA on the form. We store the form's context in $form_state['mollom'] and ask the form to rebuild itself. The rebuilding code...
_mollom_register_session_id
_mollom_update_comments
_mollom_verify_keyThis function will contact Mollom to verify the configured key pair.