You are here

function units_ctools_plugin_directory in Units of Measurement 7

Same name and namespace in other branches
  1. 7.2 units.module \units_ctools_plugin_directory()

Implements hook_ctools_plugin_directory().

File

./units.module, line 87
Provide API for managing and converting units of measurement.

Code

function units_ctools_plugin_directory($owner, $plugin_type) {
  switch ($owner) {
    case 'units':
      switch ($plugin_type) {
        case 'converters':
          return 'plugins/' . $plugin_type;
      }
      break;
  }
}