function views_php_handler_sort::php_post_execute in Views PHP 7.2
Same name and namespace in other branches
- 6 plugins/views/views_php_handler_sort.inc \views_php_handler_sort::php_post_execute()
- 7 plugins/views/views_php_handler_sort.inc \views_php_handler_sort::php_post_execute()
See also
views_php_views_post_execute()
File
- plugins/
views/ views_php_handler_sort.inc, line 74
Class
- views_php_handler_sort
- A handler to sort a view using PHP defined by the administrator.
Code
function php_post_execute() {
if (!empty($this->options['php_sort']) && $this->view->style_plugin
->build_sort()) {
ob_start();
usort($this->view->result, array(
$this,
'php_sort',
));
ob_end_clean();
}
}