How to Port customField PHP from Drupal 6 Views 2 to Drupal 7 Views 3 I have this piece of code that was in a Drupal 6 Views 2 customField PHP that I need to port to Drupal 7 Views 3 in a Global: PHP field but I can't figure why I get an empty ajax error upon building this code in the Global: PHP field value code. 

Did the accessibles variables changed?

&lt;?php
//var_dump($data);
if ($data-&gt;node_type=="project") {
echo "node/".$data-&gt;nid;
}
else
{
echo $data-&gt;node_data_field_slider_include_field_slider_link_value;
}
?&gt;


ANSWER

You need to remove the &lt;?php ?&gt; tags.
You need to remove the &lt;?php ?&gt; tags.