You are here

function _restrict_abusive_words_validation_message in Restrict Abusive Words 7

Same name and namespace in other branches
  1. 8 restrict_abusive_words.module \_restrict_abusive_words_validation_message()
  2. 7.2 restrict_abusive_words.module \_restrict_abusive_words_validation_message()

Error message against the field name(machine name).

4 calls to _restrict_abusive_words_validation_message()
_restrict_abusive_words_comment_form_validate in ./restrict_abusive_words.module
Callback function to validate node comment form for abusive words.
_restrict_abusive_words_node_form_validate in ./restrict_abusive_words.module
Callback function to validate node form for abusive words.
_restrict_abusive_words_user_form_validate in ./restrict_abusive_words.module
Callback function to validate user related form for abusive words.
_restrict_abusive_words_web_form_validate in ./restrict_abusive_words.module
Callback function to validate web form for abusive words.

File

./restrict_abusive_words.module, line 468
Restrict Abusive Words module.

Code

function _restrict_abusive_words_validation_message($field, $word) {
  $message = t("%word is not allowed word to use as it is abusive words. Please correct the word or contact to site administrator.", array(
    "%word" => $word,
  ));
  form_set_error($field, $message);
}