diff -up /Users/Chris/Desktop/viewsphpfilter-6.x/views_handler_filter_node_nid_php.inc /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/views_handler_filter_node_nid_php.inc
--- /Users/Chris/Desktop/viewsphpfilter-6.x/views_handler_filter_node_nid_php.inc	2011-01-12 08:28:24.000000000 +1100
+++ /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/views_handler_filter_node_nid_php.inc	2011-02-08 21:51:13.000000000 +1100
@@ -81,14 +81,14 @@ class views_handler_filter_node_nid_php 
     $this->ensure_my_table();
     if ($this->operator == 'NAND') {
       if (!(empty($result) || (count($result) == 1 && $result[0]==NULL))) {
-        $this->query->add_where($this->options['group'], "{$this->table_alias}.{$this->real_field} NOT IN (%s)", implode(",", $result));
+        $this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", $result, "NOT IN");
       }
     }
     else { // $this->operator == 'AND'
       if (empty($result) || (count($result) == 1 && $result[0]==NULL)) {
-        $this->query->add_where($this->options['group'], "{$this->table_alias}.{$this->real_field} IS NULL");
+        $this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", NULL, 'IS NULL');
       } else {
-        $this->query->add_where($this->options['group'], "{$this->table_alias}.{$this->real_field} IN (%s)", implode(",", $result));
+        $this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", $result, "IN");
       }
     }
   }
diff -up /Users/Chris/Desktop/viewsphpfilter-6.x/viewsphpfilter.info /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/viewsphpfilter.info
--- /Users/Chris/Desktop/viewsphpfilter-6.x/viewsphpfilter.info	2011-01-12 13:32:49.000000000 +1100
+++ /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/viewsphpfilter.info	2011-02-08 21:58:24.000000000 +1100
@@ -1,10 +1,13 @@
 ; $Id: viewsphpfilter.info,v 1.4.2.2 2011/01/09 18:04:01 gnassar Exp $
 name = Views PHP Filter
 description = "Adds a filter to Views that takes PHP code, and uses the return value of the code as an array of Node IDs to filter on."
-core = 6.x
+core = 7.x
 dependencies[] = views
 package = "Views"
-version = "$Name: DRUPAL-6--1-0 $"
+version = "$Name: DRUPAL-7--1-0 $"
+
+; Views handlers
+files[] = views_handler_filter_node_nid_php.inc
 
 ; Information added by drupal.org packaging script on 2010-11-12
 version = "6.x-1.x-dev"
@@ -18,4 +21,3 @@ version = "6.x-1.0"
 core = "6.x"
 project = "viewsphpfilter"
 datestamp = "1294799569"
-
diff -up /Users/Chris/Desktop/viewsphpfilter-6.x/viewsphpfilter.module /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/viewsphpfilter.module
--- /Users/Chris/Desktop/viewsphpfilter-6.x/viewsphpfilter.module	2011-01-10 05:04:01.000000000 +1100
+++ /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/viewsphpfilter.module	2011-02-08 20:49:45.000000000 +1100
@@ -17,6 +17,6 @@ function viewsphpfilter_help($path, $arg
 
 function viewsphpfilter_views_api() {
   return ( array(
-    'api' => '2.0',
+    'api' => '3.0-alpha1',
   ));
 }
diff -up /Users/Chris/Desktop/viewsphpfilter-6.x/viewsphpfilter.views.inc /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/viewsphpfilter.views.inc
--- /Users/Chris/Desktop/viewsphpfilter-6.x/viewsphpfilter.views.inc	2011-01-10 05:04:01.000000000 +1100
+++ /Web/d2.d7/public_html/sites/all/modules/viewsphpfilter/viewsphpfilter.views.inc	2011-02-08 21:52:29.000000000 +1100
@@ -20,13 +20,3 @@ function viewsphpfilter_views_data_alter
     ),
   );
 }
-
-function viewsphpfilter_views_handlers() {
-  return array(
-    'handlers' => array(
-      'views_handler_filter_node_nid_php' => array(
-        'parent' => 'views_handler_filter',
-      ),
-    ),
-  );
-}
