You are here

function boxes_check_plugin_class in Boxes 7.2

Check the plugin type class

Parameters

$class string: The name of the boxes type class

Return value

Boolean

2 calls to boxes_check_plugin_class()
BoxesTestPlugins::testBoxesLoadPlugin in ./boxes.test
Test loading of the plugin
boxes_load_plugin_class in ./boxes.module
Load a widget class

File

./boxes.module, line 358

Code

function boxes_check_plugin_class($class) {
  $ref_class = new ReflectionClass($class);
  if (in_array('BoxTypePluginInterface', $ref_class
    ->getInterfaceNames())) {
    return TRUE;
  }
  return FALSE;
}