function _gotwo_element_max_length_validate in Go - url redirects 7
Element settings validation.
1 string reference to '_gotwo_element_max_length_validate'
- gotwo_admin_settings_form in ./
gotwo.admin.inc - Implements hook_settings().
File
- ./
gotwo.module, line 297 - Module that provides easy to use redirection links. A redirection link would be like: http://examples.org/go/a_label http://examples.org/go/123546 http://examples.org/go/or/like/this
Code
function _gotwo_element_max_length_validate(&$element, &$form_state) {
$value = isset($element['#value']) ? $element['#value'] : $element['#default_value'];
if ($value < 10 || $value > 128) {
form_error($element, t('The value for %element-title cannot be less than 10 and not more than 128.', array(
'%element-title' => $element['#title'],
)));
}
return $element;
}