You are here

function hook_ctools_plugin_api in Node Convert 7

Provide implementation of hook_ctools_plugin_api().

This will tell CTools which file contains the implementation of hook_node_convert_change(). The conversion hook will not execute without first defining the ctools hook.

Note that your custom module may already include this hook if you use CTools export-ables, in which case you should just add the relevant conditional inside the existing implementation.

1 function implements hook_ctools_plugin_api()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

node_convert_ctools_plugin_api in ./node_convert.module
Implements hook_ctools_plugin_api().

File

./node_convert.api.php, line 17
API documentation for the node_convert module.

Code

function hook_ctools_plugin_api($module, $api) {

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