function heartbeat_views_plugins in Heartbeat 7
Same name and namespace in other branches
- 6.3 views/heartbeat_views.views.inc \heartbeat_views_plugins()
Implements hook_views_plugins().
File
- ./
heartbeat.views.inc, line 223 - Heartbeat Views support. Declares the required tables for Views.
Code
function heartbeat_views_plugins() {
return array(
'module' => 'heartbeat',
// This just tells our themes are elsewhere.
'row' => array(
'heartbeat_activity' => array(
'title' => t('Heartbeat activity'),
'help' => t('Display the message of the activity view.'),
'handler' => 'views_plugin_row_heartbeat_view',
'path' => drupal_get_path('module', 'heartbeat') . '/views',
//'theme path' => drupal_get_path('module', 'heartbeat') . '/theme',
'base' => array(
'heartbeat_activity',
),
// only works with 'heartbeat_activity' as base.
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-heartbeat',
),
'heartbeat_activity_rss' => array(
'title' => t('Heartbeat activity'),
'help' => t('Display the message of the activity rss.'),
'handler' => 'views_plugin_row_heartbeat_rss',
'path' => drupal_get_path('module', 'heartbeat') . '/views',
'theme' => 'views_view_row_rss',
//'theme path' => drupal_get_path('module', 'heartbeat') . '/theme',
'base' => array(
'heartbeat_activity',
),
// only works with 'heartbeat_activity' as base.
'uses options' => TRUE,
'type' => 'feed',
'help topic' => 'style-heartbeat',
),
),
);
}