You are here

function views_php_views_plugins in Views PHP 7.2

Same name and namespace in other branches
  1. 6 views_php.views.inc \views_php_views_plugins()
  2. 7 views_php.views.inc \views_php_views_plugins()

Implements hook_views_plugins().

File

./views_php.views.inc, line 38
Provide views handlers and plugins that allow usage of PHP.

Code

function views_php_views_plugins() {
  $plugins = array(
    'access' => array(
      'php' => array(
        'title' => t('PHP'),
        'help' => t('Use PHP code to grant access.'),
        'help topic' => '',
        'handler' => 'views_php_plugin_access',
        'uses options' => TRUE,
      ),
    ),
    'cache' => array(
      'php' => array(
        'title' => t('PHP'),
        'help' => t('Use PHP code to determine whether a should be cached.'),
        'help topic' => '',
        'handler' => 'views_php_plugin_cache',
        'uses options' => TRUE,
      ),
    ),
  );
  return $plugins;
}