function views_php_handler_area::render in Views PHP 6
Same name and namespace in other branches
- 7.2 plugins/views/views_php_handler_area.inc \views_php_handler_area::render()
- 7 plugins/views/views_php_handler_area.inc \views_php_handler_area::render()
Implements views_handler_area#render().
Overrides views_handler_area::render
File
- plugins/
views/ views_php_handler_area.inc, line 36
Class
- views_php_handler_area
- A handler to provide an area that is constructed by the administrator using PHP.
Code
function render($empty = FALSE) {
// Ecexute output PHP code.
if ((!$empty || !empty($this->options['empty'])) && !empty($this->options['php_output'])) {
$function = create_function('$view, $handler, $results', ' ?>' . $this->options['php_output'] . '<?php ');
ob_start();
$function($this->view, $this, $this->view->result);
return ob_get_clean();
}
return '';
}