You are here

function theme_clientside_error in Clientside Validation 7

Same name and namespace in other branches
  1. 6 clientside_validation.module \theme_clientside_error()

Theme callback function.

Parameters

array $variables: An array with the following keys: 'message': A string containing the error message 'placeholders': An associative array of replacements to make after translation. Incidences of any key in this array are replaced with the corresponding value. Based on the first character of the key, the value is escaped and/or themed: !variable: inserted as is @variable: escape plain text to HTML (check_plain) %variable: escape text and theme as a placeholder for user-submitted content (check_plain + theme_placeholder) 'error_type': The error type of this error message (e.g. 'required', 'min', 'max', 'range', 'decimal', 'number', ...) 'element_name': The name attribute of the element the error is for.

Return value

string

27 theme calls to theme_clientside_error()
clientside_validation_field_validation_regular in clientside_validation_field_validation/clientside_validation_field_validation.module
_clientside_validation_set_blacklist in ./clientside_validation.module
Set validation rule for fields that can not consist of one or more specific values
_clientside_validation_set_captcha in ./clientside_validation.module
_clientside_validation_set_checkboxgroup_minmax in ./clientside_validation.module
Set validation rule for checkboxes.
_clientside_validation_set_date in ./clientside_validation.module

... See full list

File

./clientside_validation.module, line 1395
Add client side validation to forms.

Code

function theme_clientside_error($variables) {
  return t($variables['message'], $variables['placeholders']);
}