You are here

function commerce_backoffice_content_views_plugins in Commerce Backoffice 7

Implements hook_views_plugins().

File

includes/views/commerce_backoffice_content.views.inc, line 41
Views plugin handlers.

Code

function commerce_backoffice_content_views_plugins() {
  $path = drupal_get_path('module', 'commerce_backoffice') . 'includes/views';
  $plugins = array(
    'module' => 'views',
    // This just tells our themes are elsewhere.
    'display' => array(
      'system' => array(
        'title' => t('System'),
        'help' => t('Display the view as replacement for an existing menu path.'),
        'path' => "{$path}/plugins",
        'handler' => 'commerce_backoffice_content_plugin_display_system',
        'theme' => 'views_view',
        'uses hook menu' => TRUE,
        'use ajax' => TRUE,
        'use pager' => TRUE,
        'accept attachments' => TRUE,
        'admin' => t('System'),
      ),
    ),
  );
  return $plugins;
}