| 1 |
<?php |
<?php |
| 2 |
//$Id$ |
//$Id: topichubs_most_viewed.module,v 1.1 2009/03/03 23:51:06 febbraro Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_topichubs_plugins(). |
* Implementation of hook_topichubs_plugins(). |
| 6 |
*/ |
*/ |
| 7 |
function topichubs_most_viewed_topichubs_plugins() { |
function topichubs_most_viewed_topichubs_plugins() { |
| 8 |
return array( |
return array( |
| 9 |
'most_viewed' => array( |
'most_viewed' => array( |
| 10 |
'title' => 'Most Viewed', |
'title' => 'Most Viewed', |
| 11 |
'description' => 'Most Viewed Nodes for the Topic Hub. Requires Statistics module.', |
'description' => 'Most Viewed Nodes for the Topic Hub. Requires Statistics module.', |
| 12 |
'handler' => 'topichubs_plugin_most_viewed', |
'handler' => 'topichubs_plugin_most_viewed', |
| 13 |
), |
), |
| 14 |
); |
); |
| 15 |
} |
} |
| 16 |
|
|
| 17 |
/** |
/** |
| 18 |
* Declare the views version we support (and provide views) |
* Declare the views version we support (and provide views) |
| 19 |
*/ |
*/ |
| 20 |
function topichubs_most_viewed_views_api() { |
function topichubs_most_viewed_views_api() { |
| 21 |
return array('api' => 2.0); |
return array('api' => 2.0); |
| 22 |
} |
} |