function feeds_node_get_callback in Feeds Node Helper 6
Same name and namespace in other branches
- 7 plugins/feeds_get.inc \feeds_node_get_callback()
Helper function to process the value conversion
1 string reference to 'feeds_node_get_callback'
- feeds_get.inc in plugins/
feeds_get.inc - Allow for mapping values from an external roles system to drupal roles
File
- plugins/
feeds_get.inc, line 35 - Allow for mapping values from an external roles system to drupal roles
Code
function feeds_node_get_callback($result, $item_key, $element_key, &$field, $settings) {
// build the list of arguments that existed at form time
$args = unserialize($result->config['FeedsHTTPFetcher']['feeds_node_helper_args']);
// only set a value if the key exists
// scrub the get_argument as well since it's a text input
$get_arg = filter_xss(check_plain($settings['get_arg']));
if (isset($args[$get_arg])) {
// even though we filtered already, do it again
$field = filter_xss(check_plain($args[$get_arg]));
}
}