function _google_tag_validate_text in GoogleTagManager 7.2
Same name and namespace in other branches
- 7 includes/variable.inc \_google_tag_validate_text()
Element validation handler for text values.
2 string references to '_google_tag_validate_text'
- _google_tag_variable_info_advanced in includes/
variable.inc - Implements hook_variable_info().
- _google_tag_variable_info_generic in includes/
variable.inc - Implements hook_variable_info().
File
- includes/
variable.inc, line 572 - Contains the variable definitions.
Code
function _google_tag_validate_text($variable, $options, $element, $form, &$form_state) {
$value = drupal_array_get_nested_value($form_state['values'], $element['#parents']);
google_tag_text_clean($value);
drupal_array_set_nested_value($form_state['values'], $element['#parents'], $value);
}