You are here

function views_customfield_handler_field_phpcode::eval_phpcode in Views Custom Field 6

Evaluate a string of PHP code.

Parameters

string $code:

mixed $static:

array $data:

Return value

string

1 call to views_customfield_handler_field_phpcode::eval_phpcode()
views_customfield_handler_field_phpcode::render_phpcode in includes/views_customfield_handler_field_phpcode.inc
Prepare and evaluate of a string of PHP code.

File

includes/views_customfield_handler_field_phpcode.inc, line 206
Contains the 'customfield' phpcode field handler.

Class

views_customfield_handler_field_phpcode

Code

function eval_phpcode($code, &$static, $data) {
  ob_start();
  print eval('?>' . $code);
  return ob_get_clean();
}