function _google_tag_validate_text in GoogleTagManager 7
Same name and namespace in other branches
- 7.2 includes/variable.inc \_google_tag_validate_text()
Element validation handler for text values.
3 string references to '_google_tag_validate_text'
- _google_tag_variable_info_advanced in includes/
variable.inc - Implements hook_variable_info().
- _google_tag_variable_info_path in includes/
variable.inc - Implements hook_variable_info().
- _google_tag_variable_info_status in includes/
variable.inc - Implements hook_variable_info().
File
- includes/
variable.inc, line 447 - 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);
}