2009-05-17 11:16:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2013-11-20 18:38:33 +00:00
|
|
|
* Provide views data for node.module.
|
2009-05-17 11:16:51 +00:00
|
|
|
*/
|
|
|
|
|
2012-07-14 19:09:49 +00:00
|
|
|
/**
|
|
|
|
* Implements hook_views_wizard().
|
|
|
|
*/
|
|
|
|
function node_views_wizard() {
|
2012-07-28 23:20:10 +00:00
|
|
|
// @todo: figure this piece out.
|
2013-10-16 12:17:55 +00:00
|
|
|
if (\Drupal::moduleHandler()->moduleExists('statistics')) {
|
2012-07-14 19:09:49 +00:00
|
|
|
$plugins['node']['available_sorts']['node_counter-totalcount:DESC'] = t('Number of hits');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|