You are here

views_php.views.inc in Views PHP 8

Same filename and directory in other branches
  1. 6 views_php.views.inc
  2. 7.2 views_php.views.inc
  3. 7 views_php.views.inc

Provide views handlers that allow usage of PHP.

File

views_php.views.inc
View source
<?php

/**
 * @file
 * Provide views handlers that allow usage of PHP.
 */

/**
 * Implements hook_views_data().
 */
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;
}

Functions

Namesort descending Description
views_php_views_data Implements hook_views_data().