You are here

function _asin_trim_items in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 asin/asin.module \_asin_trim_items()
  2. 7.2 asin/asin.module \_asin_trim_items()

Trim spaces from the front/back of each ASIN in an array.

Parameters

$items: Array of ASINS

Return value

Same array of ASINs, trimmed

File

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

Code

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