You are here

function _amazon_item_classes in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 amazon.module \_amazon_item_classes()
  2. 7.2 amazon.module \_amazon_item_classes()

Create name of the extra css class for an item.

Parameters

$item: The amazon_item.

6 calls to _amazon_item_classes()
amazon-item--inline.tpl.php in templates/amazon-item--inline.tpl.php
Theme the 'amazon_inline_item' type. Available variables:
template_preprocess_amazon_item in ./amazon.module
template_preprocess: amazon_item.
theme_amazon_inline_item__dvd in amazon_media/amazon_media.module
Theme with inline item dvd.
theme_amazon_inline_item__games in amazon_media/amazon_media.module
theme_amazon_inline_item__software in amazon_media/amazon_media.module

... See full list

File

./amazon.module, line 245

Code

function _amazon_item_classes($item) {
  return 'amazon-item amazon-item-' . str_replace('_', '-', _amazon_clean_type($item['producttypename']));
}