You are here

function message_ctools_plugin_directory in Message 6

Same name and namespace in other branches
  1. 7 message.module \message_ctools_plugin_directory()

Implementation of hook_ctools_plugin_directory().

File

./message.module, line 26
API functions to manipulate messages.

Code

function message_ctools_plugin_directory($module, $type) {

  // Safety: go away if CTools is not at an appropriate version.
  if (!module_invoke('ctools', 'api_version', MESSAGE_REQUIRED_CTOOLS_API)) {
    return;
  }
  if ($module == 'message' && $type == 'plugins') {
    return 'plugins/message';
  }
  elseif ($type == 'export_ui') {
    return 'plugins/export_ui';
  }
}