function views_php_views_plugins in Views PHP 6
Same name and namespace in other branches
- 7.2 views_php.views.inc \views_php_views_plugins()
- 7 views_php.views.inc \views_php_views_plugins()
Implements hook_views_plugins().
File
- ./
views_php.views.inc, line 64 - 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.'),
'handler' => 'views_php_plugin_access',
'uses options' => TRUE,
'path' => drupal_get_path('module', 'views_php') . '/plugins/views',
'help topic' => 'access-php',
),
),
'cache' => array(
'php' => array(
'title' => t('PHP'),
'help' => t('Use PHP code to determine whether a view should be cached.'),
'handler' => 'views_php_plugin_cache',
'uses options' => TRUE,
'path' => drupal_get_path('module', 'views_php') . '/plugins/views',
'help topic' => 'cache-php',
),
),
);
return $plugins;
}