You are here

function commerce_shipping_plugin_get_plugin_class_init in Commerce Shipping 7

Util function to return a instantiated plugin class.

1 call to commerce_shipping_plugin_get_plugin_class_init()
RulesDataUIShippingSettings::inputForm in ./commerce_shipping.rules.inc
Constructs the direct input form.

File

./commerce_shipping.module, line 465
Defines the shipping system and checkout integration.

Code

function commerce_shipping_plugin_get_plugin_class_init($plugin_type, $id) {
  $class = commerce_shipping_plugin_get_plugin_class($plugin_type, $id);
  if ($class) {
    return new $class();
  }
  return FALSE;
}