You are here

function web_widgets_views_plugins in Web Widgets 7

Same name and namespace in other branches
  1. 6 views/web_widgets.views.inc \web_widgets_views_plugins()

Implements hook_views_plugins().

File

views/web_widgets.views.inc, line 11
Web Widget display defition.

Code

function web_widgets_views_plugins() {
  $data = array(
    'display' => array(
      'web_widgets' => array(
        'title' => t('Web widget'),
        'help' => t('Display the view as a widget. Offer a snippet of code that users can copy and paste to another web site.'),
        'handler' => 'web_widgets_plugin_display_web_widgets',
        'parent' => 'page',
        'path' => drupal_get_path('module', 'web_widgets') . '/views',
        'uses hook menu' => TRUE,
        'theme' => 'views_view',
        'use ajax' => FALSE,
        'use pager' => FALSE,
        'accept attachments' => FALSE,
      ),
    ),
  );
  return $data;
}