function _botcha_filter_form_values_log in BOTCHA Spam Prevention 6.3
Same name and namespace in other branches
- 6 botcha.botcha.inc \_botcha_filter_form_values_log()
- 6.2 botcha.inc \_botcha_filter_form_values_log()
Filter out sensitive form data from values for logging
3 calls to _botcha_filter_form_values_log()
- Botcha::form_alter in controller/
application/ botcha.application.controller.inc - Implementation of hook_form_alter().
- BotchaRecipebook::handle in controller/
recipebook/ botcha.recipebook.controller.inc - Handle form depending on the result of spam check.
- _botcha_filter_form_log in ./
botcha.module - Filter out sensitive form data for logging Recursive.
File
- ./
botcha.module, line 151 - BOTCHA - Spam Prevention It modifies forms by adding various botcha's.
Code
function _botcha_filter_form_values_log($values) {
if (is_array($values) && isset($values['pass']) && is_string($values['pass'])) {
$values['pass'] = '********';
}
return $values;
}