You are here

function _tamper_process_plugin_definition in Tamper 7

Processes ctools plugin definitions.

If the class definition is a string, we assume the class lives in the src directory.

1 string reference to '_tamper_process_plugin_definition'
tamper_ctools_plugin_type in ./tamper.module
Implements hook_ctools_plugin_type().

File

./tamper.module, line 31
A generic framework for modifying data.

Code

function _tamper_process_plugin_definition(array &$definition) {
  if (!is_string($definition['class'])) {
    return;
  }
  $definition['class'] = array(
    'class' => $definition['class'],
    'file' => $definition['class'] . '.php',
    'path' => drupal_get_path('module', $definition['module']) . '/src/Plugins',
  );
}