Newer
Older
The Great Git Migration
committed
<?php
/**
* Handle a random sort.
*/
class views_handler_sort_random extends views_handler_sort {
function query() {
Daniel Wehner
committed
$this->query->add_orderby('rand');
The Great Git Migration
committed
}
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['order']['#access'] = FALSE;
}
}