You are here

function node_convert_ctools_plugin_api in Node Convert 7

Implements hook_ctools_plugin_api().

Tell CTools that we support default conversion templates, and also custom behaviors.

File

./node_convert.module, line 569

Code

function node_convert_ctools_plugin_api($module, $api) {

  // Default conversion templates.
  if ($module == 'node_convert' && $api == 'node_convert') {
    return array(
      'version' => node_convert_api_version(),
    );
  }

  // Conversion behaviors.
  if ($module == 'node_convert' && $api == NODE_CONVERT_BEHAVIOR_PLUGIN) {
    return array(
      'version' => node_convert_api_version(),
      'path' => drupal_get_path('module', 'node_convert') . '/modules/',
      'file' => "{$module}.{$api}.inc",
    );
  }
  return NULL;
}