1 views_handler_sort_random.inc views_handler_sort_random::query()

Called to add the sort to a query.

Overrides views_handler_sort::query

File

core/modules/views/handlers/views_handler_sort_random.inc, line 14
Definition of views_handler_sort_random.

Class

views_handler_sort_random
Handle a random sort.

Code

function query() {
  $this->query->add_orderby('rand');
}