function _amazon_clean_type in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 7.2 amazon.module \_amazon_clean_type()
- 7 amazon.module \_amazon_clean_type()
3 calls to _amazon_clean_type()
- amazon-inline-item.tpl.php in ./
amazon-inline-item.tpl.php - amazon_preprocess_amazon_item in ./
amazon.module - hook_preprocess: amazon_item.
- _amazon_item_classes in ./
amazon.module
File
- ./
amazon.module, line 193
Code
function _amazon_clean_type($type) {
return check_plain(strtolower(str_replace(array(
'ABIS_',
'CONSOLE_',
'VIDEO_',
' ',
), array(
'',
'',
'',
'_',
), $type)));
}