You are here

function slickgrid_plugin_load_class in Slickgrid 7

Same name and namespace in other branches
  1. 7.2 slickgrid.module \slickgrid_plugin_load_class()

File

./slickgrid.module, line 290

Code

function slickgrid_plugin_load_class($type, $id, $class_name) {
  ctools_include('plugins');
  $plugin_definition = ctools_get_plugins('slickgrid', $type, $id);
  require_once DRUPAL_ROOT . '/' . $plugin_definition['path'] . "/{$class_name}.class.php";
  $class = ctools_plugin_get_class($plugin_definition, $class_name);
  return $class;
}