You are here

function views_php_views_data in Views PHP 8

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

Implements hook_views_data().

File

./views_php.views.inc, line 11
Provide views handlers that allow usage of PHP.

Code

function views_php_views_data() {
  $data['views']['php'] = array(
    'title' => t('PHP'),
    'help' => t('Use PHP code.'),
    'area' => array(
      'id' => 'views_php',
    ),
    'field' => array(
      'id' => 'views_php',
    ),
    'filter' => array(
      'id' => 'views_php',
    ),
    'sort' => array(
      'id' => 'views_php',
    ),
  );
  return $data;
}