You are here

function outdatedbrowser_variable_validate_colour in Outdated Browser 7

Validate hexadecimal colour code.

1 string reference to 'outdatedbrowser_variable_validate_colour'
outdatedbrowser_variable_info in ./outdatedbrowser.variable.inc
Implements hook_variable_info().

File

./outdatedbrowser.variable.inc, line 67
Variable module hook implementations.

Code

function outdatedbrowser_variable_validate_colour($variable) {
  if (!outdatedbrowser_valid_hexadecimal_string($variable['value'])) {
    return t('The given value is not a valid hexadecimal colour code.');
  }
}