You are here

function hook_feeds_user_processor_targets_alter in Feeds 6

Alter mapping targets for users. Use this hook to add additional target options to the mapping form of User processors.

For an example implementation, see mappers/profile.inc

@param: &$targets Array containing the targets to be offered to the user. Add to this array to expose additional options. Remove from this array to suppress options.

Related topics

1 function implements hook_feeds_user_processor_targets_alter()

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

profile_feeds_user_processor_targets_alter in mappers/profile.inc
Implementation of feeds_user_processor_target_alter().
1 invocation of hook_feeds_user_processor_targets_alter()
FeedsUserProcessor::getMappingTargets in plugins/FeedsUserProcessor.inc
Return available mapping targets.

File

./feeds.api.php, line 183
Documentation of Feeds hooks.

Code

function hook_feeds_user_processor_targets_alter(&$targets) {
  $targets['my_user_field'] = array(
    'name' => t('My custom user field'),
    'description' => t('Description of what my custom user field does.'),
    'callback' => 'my_callback',
  );
}