You are here

function commerce_discount_offer_type in Commerce Discount 7

Loads the data for a specific discount offer type.

Parameters

string $offer_type: The machine name of an offer type.

Return value

mixed The requested array or FALSE if not found.

File

./commerce_discount.module, line 808
Defines the discount and discount offer entities, bundles and functionality.

Code

function commerce_discount_offer_type($offer_type) {
  $offer_types = commerce_discount_offer_types();
  return isset($offer_types[$offer_type]) ? $offer_types[$offer_type] : FALSE;
}