function views_random_seed_views_data in Views random seed 7
Same name and namespace in other branches
- 8 views_random_seed.module \views_random_seed_views_data()
- 6 views_random_seed.module \views_random_seed_views_data()
Implements hook_views_data().
File
- ./
views_random_seed.module, line 18 - 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_data() {
$data['views']['random_seed'] = array(
'title' => t('Random seed'),
'help' => t('Randomize the display order with a seed which makes paging possible.'),
'sort' => array(
'handler' => 'views_random_seed_handler_sort_random',
),
);
return $data;
}