function views_customfield_handler_field_phpcode in Views Custom Field 5
Views field handler: Display row-specific custom text using PHP.
Parameters
array $fieldinfo:
array $fielddata:
string $value:
object $data:
Return value
string
1 string reference to 'views_customfield_handler_field_phpcode'
- views_customfield_views_tables in ./
views_customfield.module - Implementation of hook_views_tables()
File
- ./
views_customfield.module, line 138
Code
function views_customfield_handler_field_phpcode($fieldinfo, $fielddata, $value, $data) {
static $static;
// TODO should be possible to unserialize just once per view/field
$options = unserialize($fielddata['options']);
return views_customfield_handler_field_phpcode_eval($options['value'], $static[$fielddata['position']], $data);
}