mollom.module

Version 1.2.2.137 (checked in on 2010/03/24 at 16:27:51 by dries)

Main Mollom integration module functions.

Constants

NameDescription
MOLLOM_ANALYSIS_HAMText analysis result flag: Content is no spam.
MOLLOM_ANALYSIS_SPAMText analysis result flag: Content is spam.
MOLLOM_ANALYSIS_UNKNOWNText analysis result flag: No result.
MOLLOM_ANALYSIS_UNSUREText analysis result flag: Ambiguous result.
MOLLOM_API_VERSIONMollom API version; used for XML-RPC communication with Mollom servers.
MOLLOM_ERRORXML-RPC communication failure: Error on Mollom server.
MOLLOM_FALLBACK_ACCEPTXML-RPC communication failure fallback mode: Accept all submissions of protected forms.
MOLLOM_FALLBACK_BLOCKXML-RPC communication failure fallback mode: Block all submissions of protected forms.
MOLLOM_MODE_ANALYSISForm protection mode: Text analysis with fallback to CAPTCHA.
MOLLOM_MODE_CAPTCHAForm protection mode: CAPTCHA-only protection.
MOLLOM_MODE_DISABLEDForm protection mode: No protection.
MOLLOM_REDIRECTXML-RPC communication failure: Mollom server defers communication to next server in server list.
MOLLOM_REFRESHXML-RPC communication failure: Mollom server requests client to update its server list.
NETWORK_ERRORXML-RPC communication failure: No servers could be reached.

Functions

NameDescription
comment_mollom_form_infoImplements hook_mollom_form_info().
comment_mollom_form_listImplements hook_mollom_form_list().
comment_mollom_report_deleteMollom report delete callback; Deletes a comment and its replies. See alsocomment_confirm_delete_submit()
contact_mollom_form_infoImplements hook_mollom_form_info().
contact_mollom_form_listImplements hook_mollom_form_list().
mollomCall a remote procedure at the Mollom server.
mollom_commentImplements hook_comment().
mollom_comment_form_validateForm validation handler for comment_form().
mollom_content_extra_fieldsImplements hook_content_extra_fields().
mollom_cronImplements hook_cron().
mollom_data_deleteDeletes a Mollom session data record from the database.
mollom_data_delete_form_alterHelper function to add Mollom feedback options to confirmation forms.
mollom_data_delete_form_submitSend feedback to Mollom and delete Mollom data. See alsomollom_form_alter()
mollom_data_delete_multipleDeletes multiple Mollom session data records from the database.
mollom_data_loadLoad a Mollom data record from the database.
mollom_data_reportSends feedback for a Mollom session data record.
mollom_data_report_multipleSends feedback for multiple Mollom session data records.
mollom_data_saveSave Mollom validation data to the database.
mollom_delete_form_listReturns a mapping of entity delete forms to registered Mollom form ids.
mollom_elementsImplements hook_elements().
mollom_exitImplements hook_exit().
mollom_flush_cachesImplements hook_flush_caches().
mollom_form_alterImplements hook_form_alter().
mollom_form_comment_admin_overview_alterImplements hook_form_FORMID_alter().
mollom_form_comment_form_alterImplements hook_form_FORMID_alter().
mollom_form_get_valuesGiven an array of values and an array of fields, extract data for use.
mollom_form_infoReturns information about a form registered via hook_mollom_form_info().
mollom_form_listReturns a list of protectable forms registered via hook_mollom_form_info().
mollom_form_loadMenu argument loader; Loads Mollom configuration and form information for a given form id.
mollom_form_node_admin_content_alterImplements hook_form_FORMID_alter().
mollom_form_saveSaves a Mollom form configuration.
mollom_form_submitForm submit handler to flush Mollom session and form information from cache.
mollom_get_modeReturn the protection mode for a given form id.
mollom_get_statisticsFetch the site's Mollom statistics from the API.
mollom_helpImplements hook_help().
mollom_linkImplements hook_link().
mollom_mail_alterImplements hook_mail_alter().
mollom_menuImplements hook_menu().
mollom_nodeapiImplements hook_nodeapi().
mollom_permImplements hook_perm().
mollom_pre_render_mollomForm element #pre_render callback for CAPTCHA element.
mollom_process_mollomForm element #process callback for the 'mollom' element.
mollom_process_mollom_session_idForm element #process callback for Mollom's form storage handling.
mollom_report_accessMenu access callback; Determine access to report to Mollom.
mollom_themeImplements hook_theme().
mollom_validate_analysisForm validation handler to perform textual analysis of submitted form values.
mollom_validate_captchaForm validation handler for CAPTCHA form element.
node_mollom_form_infoImplements hook_mollom_form_info().
node_mollom_form_listImplements hook_mollom_form_list().
node_mollom_report_accessMollom report access callback; Determine access to report and delete a node.
node_mollom_report_deleteMollom report delete callback; Deletes a node.
theme_mollomFormat the Mollom form element.
user_mollom_form_infoImplements hook_mollom_form_info().
user_mollom_form_listImplements hook_mollom_form_list().
_mollom_accessAccess callback; check if the module is configured.
_mollom_fallbackHelper function to log and optionally output an error message when Mollom servers are unavailable.
_mollom_flatten_form_valuesRecursive helper function to flatten nested form values.
_mollom_get_openidHelper function to return OpenID identifiers associated with a given user account.
_mollom_send_feedbackSend feedback to Mollom.
_mollom_statusReturns the (last known) status of the configured Mollom API keys.
_mollom_watchdogHelper function for mollom() to invoke watchdog() with cumulative messages.