You are here

function views_random_seed_views_handlers in Views random seed 6

Same name and namespace in other branches
  1. 7 views_random_seed.module \views_random_seed_views_handlers()

Implementation of hook_views_handlers() to register the random seed handler.

File

./views_random_seed.module, line 29
Adds a random order handler with seed. If a constant integer argument N is specified, it is used as the seed value, which produces a repeatable sequence of column values. This makes it possible to have paging and not having items show up twice. See…

Code

function views_random_seed_views_handlers() {
  return array(
    'info' => array(
      'path' => drupal_get_path('module', 'views_random_seed'),
    ),
    'handlers' => array(
      'views_random_seed_handler_sort_random' => array(
        'parent' => 'views_handler_sort',
      ),
    ),
  );
}