You are here

function product_price_alterer_field_widget_info 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 \product_price_alterer_field_widget_info()

Implementation of hook_widget_info().

File

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

Code

function product_price_alterer_field_widget_info() {
  return array(
    "discounted_price" => array(
      "label" => "Default Display",
      "field types" => array(
        "discounted_price",
      ),
      "multiple values" => CONTENT_HANDLE_CORE,
      "callbacks" => array(
        "default value" => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}