Closed (outdated)
Project:
Views PHP
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2012 at 15:37 UTC
Updated:
8 Feb 2021 at 23:23 UTC
Jump to comment: Most recent
I will refer to the screenshots provided.
1. shows the code i used on the Value and Output fields
2. shows the options on the VBO page
3. shows the rendered Output fields
and 4 shows the Value field is empty
Comments
Comment #1
webservant316 commentedI think you forgot to upload your screen shots.
I am having the same problem. The $value field is empty after a return from the value code.
Help!
Comment #2
webservant316 commentedNot only is the $value empty when referenced in the output code, but $row->php is also empty when referenced from a second php field in either the value or output code. I can reference $data->nid, I think. The only variable that seems to receive an assignment is $static.
This module appears to be broken.
Here is the value code for my first php field
return node_access( 'view', node_load( $data->nid ) );Here is the output code for my first php field
<?php echo "value=" . $value; ?>Here is the output code for my second php field
<?php echo "value=" . $row->php; ?>With this code the display for my first and second php field is an empty 'value='.
Comment #3
webservant316 commentedok, so it seems that assignments are not properly made to row->php so I just put all my code in the output code section and it works that way.
Comment #4
webservant316 commentedI got view_php to work in part, but in the end back pedaled to views_customfield to get what I needed.
Comment #5
liam morlandDrupal 6 is no longer supported. If this applies to a later version, please re-open and update the version.