You are here

function commerce_shipping_plugin_get_plugin_class in Commerce Shipping 7

Util function to get shipping plugin class.

1 call to commerce_shipping_plugin_get_plugin_class()
commerce_shipping_plugin_get_plugin_class_init in ./commerce_shipping.module
Util function to return a instantiated plugin class.

File

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

Code

function commerce_shipping_plugin_get_plugin_class($plugin_type, $id) {
  $plugin = commerce_shipping_plugin_get_plugin($plugin_type, $id);
  if (is_array($plugin) && isset($plugin['handler']['class'])) {
    return $plugin['handler']['class'];
  }
  return FALSE;
}