You are here

function ViewsAccessTest::viewsPlugins in Views (for Drupal 7) 7.3

Overrides ViewsSqlTest::viewsPlugins

File

tests/views_access.test, line 37
Definition of ViewsAccessTest.

Class

ViewsAccessTest
Basic test for pluggable access.

Code

function viewsPlugins() {
  $plugins = array(
    'access' => array(
      'test_static' => array(
        'title' => t('Static test access plugin'),
        'help' => t('Provides a static test access plugin.'),
        'handler' => 'views_test_plugin_access_test_static',
        'path' => drupal_get_path('module', 'views_test') . '/test_plugins',
      ),
      'test_dynamic' => array(
        'title' => t('Dynamic test access plugin'),
        'help' => t('Provides a dynamic test access plugin.'),
        'handler' => 'views_test_plugin_access_test_dynamic',
        'path' => drupal_get_path('module', 'views_test') . '/test_plugins',
      ),
    ),
  );
  return $plugins;
}