You are here

function mediafront_views_plugins in MediaFront 7.2

Same name and namespace in other branches
  1. 6.2 views/mediafront.views.inc \mediafront_views_plugins()
  2. 6 views/mediafront.views.inc \mediafront_views_plugins()
  3. 7 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('MediaFront Player'),
        'help' => t('Shows this view as a Media Player, mapping fields to the playlist elements.'),
        'handler' => 'mediafront_plugin_style_player',
        '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;
}