Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/handlers/views_handler_sort_random.inc | ||
---|---|---|
11 | 11 |
* @ingroup views_sort_handlers |
12 | 12 |
*/ |
13 | 13 |
class views_handler_sort_random extends views_handler_sort { |
14 |
function query() { |
|
14 |
|
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function query() { |
|
15 | 19 |
$this->query->add_orderby('rand'); |
16 | 20 |
} |
17 | 21 |
|
18 |
function options_form(&$form, &$form_state) { |
|
22 |
/** |
|
23 |
* {@inheritdoc} |
|
24 |
*/ |
|
25 |
public function options_form(&$form, &$form_state) { |
|
19 | 26 |
parent::options_form($form, $form_state); |
20 | 27 |
$form['order']['#access'] = FALSE; |
21 | 28 |
} |
29 |
|
|
22 | 30 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules