function mediafront_views_plugins in MediaFront 7
Same name and namespace in other branches
- 6.2 views/mediafront.views.inc \mediafront_views_plugins()
- 6 views/mediafront.views.inc \mediafront_views_plugins()
- 7.2 views/mediafront.views.inc \mediafront_views_plugins()
Implementation of hook_views_plugins
File
- views/
mediafront.views.inc, line 12 - mediafront.views.inc Built in plugins for Views output handling.
Code
function mediafront_views_plugins() {
$path = drupal_get_path('module', 'mediafront');
$plugins = array(
'module' => 'mediafront',
// This just tells our themes are elsewhere.
'style' => array(
'mediaplayer' => array(
'title' => t('Media Player'),
'help' => t('Shows this view as a Media Player.'),
'handler' => 'mediafront_plugin_style_player',
'theme' => 'mediafront_player_view',
'path' => "{$path}/views",
'theme path' => "{$path}/views",
'uses fields' => FALSE,
'uses row plugin' => FALSE,
'uses options' => TRUE,
'uses grouping' => FALSE,
'type' => 'normal',
'even empty' => TRUE,
),
'mediaplayer_advanced' => array(
'title' => t('Media Player Advanced'),
'help' => t('Shows this view as a Media Player, mapping fields to the playlist elements.'),
'handler' => 'mediafront_plugin_style_player_advanced',
'theme' => 'mediafront_player_view',
'path' => "{$path}/views",
'theme path' => "{$path}/views",
'uses fields' => TRUE,
'uses row plugin' => FALSE,
'uses options' => TRUE,
'uses grouping' => FALSE,
'type' => 'normal',
'even empty' => TRUE,
),
),
);
return $plugins;
}