You are here

function feeds_node_maps_callback in Feeds Node Helper 7

Same name and namespace in other branches
  1. 6 plugins/feeds_node_maps.inc \feeds_node_maps_callback()

Helper function to process the value conversion

1 string reference to 'feeds_node_maps_callback'
feeds_node_maps.inc in plugins/feeds_node_maps.inc
Allow for mapping values from an external roles system to drupal roles

File

plugins/feeds_node_maps.inc, line 30
Allow for mapping values from an external roles system to drupal roles

Code

function feeds_node_maps_callback($result, $item_key, $element_key, &$field, $settings) {

  // account for drush / command line interfaces
  if (!drupal_is_cli()) {
    global $user;
    $field = $user->uid;
  }

  // CLI comes up as anonymous so ignore field tamper
}