You are here

function entityreference_current_ctools_plugin_directory in Entityreference Current 7

Implements hook_ctools_plugin_directory().

File

./entityreference_current.module, line 11
Prepoplates entity reference values from Current Entity(Menu Object).

Code

function entityreference_current_ctools_plugin_directory($module, $plugin) {
  if ($module == 'entityreference' || $module == 'ctools') {
    return 'plugins/' . $plugin;
  }
}