function google_adwords_field_presave in Google AdWords Conversion Tracking 7
Implements hook_field_presave().
File
- ./
google_adwords.module, line 151 - Google Adwords Conversion Tracking Module
Code
function google_adwords_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
// Make sure nothing evil can bypass
foreach ($items as $delta => &$item) {
$item['conversion_id'] = (int) $item['conversion_id'];
$item['label'] = filter_xss($item['label']);
$item['value'] = filter_xss($item['value']);
$item['language'] = filter_xss($item['language']);
$item['color'] = filter_xss($item['color']);
$item['format'] = filter_xss($item['format']);
}
return $items;
}