Hi

I have to create some custom tamper plugins (rewriting data). What is the best way to integrate my own plugin from my custom module?

It seems to me, that there is no hook and now proper way of doing this exept adding files to the module folder.

Is this correct? Or is there an integration possiblity?

Comments

imiksu’s picture

I was actually wondering the same. It seems that feeds tamper is using ctools and therefore gets little interesting since I haven't got familiar with its API because of poor documentation..

twistor’s picture

Component: Code » Documentation
Assigned: Unassigned » twistor

This needs to be documented.

All that needs to be done is:

/**
 * Implements hook_ctools_plugin_directory().
 */
function hook_ctools_plugin_directory($module, $plugin) {
  if ($module == 'feeds_tamper') {
    return 'plugins';
  }
}

where 'plugins/' is the directory that you want to stick plugins in. The plugins have the same format as the ones that come with tamper.

Edit: return 'plugins/'; -> return 'plugins';

Letharion’s picture

Category: support » task
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.