Index: plugins/php_code.inc
===================================================================
RCS file: plugins/php_code.inc
diff -N plugins/php_code.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ plugins/php_code.inc	12 Nov 2010 21:05:45 -0000
@@ -0,0 +1,35 @@
+<?php
+// $Id$
+
+// Only allow the use of this plugin if user has the right permission
+if (user_access('use PHP code in feeds_tamper')) {
+  
+$plugin = array(
+  'form' => 'feeds_tamper_php_code_form',
+  'callback' => 'feeds_tamper_php_code_callback',
+  'name' => 'Custom PHP code',
+);
+
+function feeds_tamper_php_code_form($settings) {
+  $form = array();
+
+  $form['php_code'] = array(
+    '#type' => 'textarea',
+    '#title' => t('PHP code to execute'),
+    '#default_value' => isset($settings['php_code']) ? $settings['php_code'] : '',
+    '#description' => t('Enter your PHP code surrounded by &lt;?php and ?&gt;. In order to get access to the field, use the variable $field and return the output using a return statement')
+  );
+
+  return $form;
+}
+
+function feeds_tamper_php_code_callback($source, $item_key, $element_key, &$field, $values) {
+  // Not using drupal_eval in order to get access to the $field variable in the PHP code being evaluated
+  ob_start();
+  print eval('?>' . $values['php_code']);
+  $output = ob_get_contents();
+  ob_end_clean();
+  $field = $output;
+}
+
+}
? php_code.patch
Index: feeds_tamper.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feeds_tamper/feeds_tamper.module,v
retrieving revision 1.5.2.10
diff -u -p -r1.5.2.10 feeds_tamper.module
--- feeds_tamper.module	23 Oct 2010 00:12:20 -0000	1.5.2.10
+++ feeds_tamper.module	12 Nov 2010 21:05:51 -0000
@@ -4,6 +4,13 @@
 /**
  * Feeds related api hooks.
  */
+ 
+/**
+ * Implementation of hook_perm()
+ */
+function feeds_tamper_perm() {
+  return array('use PHP code in feeds_tamper');
+}
 
 /**
 * Implementation of hook_feeds_after_parse().
