You are here

function commerce_option_new in Commerce Product Option 7

Same name and namespace in other branches
  1. 7.2 commerce_option.module \commerce_option_new()

Returns an initialized product object.

Parameters

$set_id: The machine-readable set id of the option.

Return value

A product object with all default fields initialized.

File

./commerce_option.module, line 105

Code

function commerce_option_new($set_id = '') {
  return entity_get_controller('commerce_product')
    ->create($set_id);
}