You are here

function _asin_trim_items in Amazon Product Advertisement API 6

Same name and namespace in other branches
  1. 7.2 asin/asin.module \_asin_trim_items()
  2. 7 asin/asin.module \_asin_trim_items()
1 call to _asin_trim_items()
asin_field in asin/asin.module
Implementation of hook_field().

File

asin/asin.module, line 148
Defines a field type for referencing an Amazon product.

Code

function _asin_trim_items(&$items) {
  foreach ($items as $delta => $item) {
    $items[$delta]['asin'] = trim($items[$delta]['asin']);
  }
}