function views_php_views_pre_execute in Views PHP 7
Same name and namespace in other branches
- 8 views_php.module \views_php_views_pre_execute()
- 6 views_php.module \views_php_views_pre_execute()
- 7.2 views_php.module \views_php_views_pre_execute()
Implements hook_views_pre_execute().
File
- ./
views_php.module, line 136 - Allows to use PHP in views.
Code
function views_php_views_pre_execute($view) {
// Seize control over the query plugin if requested by a views handler.
if (!empty($view->views_php)) {
$query = new views_php_plugin_query();
$query
->php_wrap($view->query);
}
}