function _asin_trim_items in Amazon Product Advertisement API 7.2
Same name and namespace in other branches
- 6 asin/asin.module \_asin_trim_items()
- 7 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);
}
}