123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * @file
- * Definition of views_handler_sort_random.
- */
- /**
- * Handle a random sort.
- *
- * @ingroup views_sort_handlers
- */
- class views_handler_sort_random extends views_handler_sort {
- /**
- * {@inheritdoc}
- */
- public function query() {
- $this->query->add_orderby('rand');
- }
- /**
- * {@inheritdoc}
- */
- public function options_form(&$form, &$form_state) {
- parent::options_form($form, $form_state);
- $form['order']['#access'] = FALSE;
- }
- }
|