You are here

function commerce_coupon_coupon_form_wrapper in Commerce Coupon 7.2

Page wrapper: coupon add/edit form.

Parameters

object $coupon: A coupon object.

Return value

array Drupal form array.

1 string reference to 'commerce_coupon_coupon_form_wrapper'
commerce_coupon_menu in ./commerce_coupon.module
Implements hook_menu().

File

./commerce_coupon.module, line 472
Provides coupon functionality for Drupal Commerce.

Code

function commerce_coupon_coupon_form_wrapper($coupon) {
  module_load_include('inc', 'commerce_coupon', 'includes/commerce_coupon.admin');
  return drupal_get_form('commerce_coupon_form', $coupon);
}