You are here

function add_product_price_altering_css in Ubercart Discounts (Alternative) 7.2

Same name and namespace in other branches
  1. 6.2 product_price_alterer_field/product_price_alterer_field.module \add_product_price_altering_css()

Function for writing css to product page.

2 calls to add_product_price_altering_css()
discounted_price_handler::render in product_price_alterer_field/includes/discounted_price_handler.inc
Render the field.
product_price_alterer_field_field in product_price_alterer_field/product_price_alterer_field.module
Implementation of hook_field()

File

product_price_alterer_field/product_price_alterer_field.module, line 122
Provides discounts based on ubercart products based on product quantity purchased using attached product field.

Code

function add_product_price_altering_css() {
  static $product_price_alterer_field_css_added;
  if (empty($product_price_alterer_field_css_added)) {
    $product_price_alterer_field_css_added = TRUE;
    drupal_add_css(drupal_get_path('module', 'product_price_alterer_field') . '/product_price_alterer_field.css');
  }
}