| 1674 |
return FALSE; |
return FALSE; |
| 1675 |
} |
} |
| 1676 |
|
|
| 1677 |
|
$result = array(); |
| 1678 |
|
|
| 1679 |
// See if any other modules have a say in the matter... |
// See if any other modules have a say in the matter... |
| 1680 |
foreach (module_list() as $module) { |
foreach (module_list() as $module) { |
| 1681 |
$func = $module .'_cart_item'; |
$func = $module .'_cart_item'; |
| 1682 |
if (function_exists($func) && $func('can_ship', $product)) { |
if (function_exists($func)) { |
| 1683 |
// $product must be passed by reference. |
// $product must be passed by reference. |
| 1684 |
$result[] = TRUE; |
$return = $func('can_ship', $product); |
| 1685 |
|
|
| 1686 |
|
if (!is_null($return)) { |
| 1687 |
|
$result[] = $return; |
| 1688 |
|
} |
| 1689 |
} |
} |
| 1690 |
} |
} |
| 1691 |
|
|