You are here

function commerce_product_ui_product_form_wrapper in Commerce Core 7

Form callback wrapper: create or edit a product.

Parameters

$product: The product object being edited by this form.

See also

commerce_product_product_form()

1 string reference to 'commerce_product_ui_product_form_wrapper'
commerce_product_ui_menu in modules/product/commerce_product_ui.module
Implements hook_menu().

File

modules/product/includes/commerce_product_ui.products.inc, line 63
Page callbacks and form builder functions for administering products.

Code

function commerce_product_ui_product_form_wrapper($product) {

  // Include the forms file from the Product module.
  module_load_include('inc', 'commerce_product', 'includes/commerce_product.forms');
  return drupal_get_form('commerce_product_ui_product_form', $product);
}