You are here

function diba_carousel_query_random_order_alter in Diba carousel slider 8

Implements hook_query_tag_alter().

File

./diba_carousel.module, line 46
Diba carousel slider module.

Code

function diba_carousel_query_random_order_alter(SelectInterface $query) {

  // Select a random element.
  $query
    ->orderRandom();
}