Drupal is a registered trademark of Dries Buytaert
Release: Paragraphs 8.x-1.22 Minor update available for module paragraphs (8.x-1.22). Release: Menu Item Extras 3.1.2 Minor update available for module menu_item_extras (3.1.2). Release: Admin Navigation 1.1.1 Minor update available for module admin_navigation (1.1.1). Release: FileGate 1.5.2 Minor update available for module file_gate (1.5.2). Release: FileGate 1.5.1 Minor update available for module file_gate (1.5.1). Release: Drupal Admin App 2.3.5 Minor update available for module drupal_admin_app (2.3.5). Release: REST OAI-PMH 2.3.3 Minor update available for module rest_oai_pmh (2.3.3). Release: Field Guard 1.1.0 Minor update available for module field_guard (1.1.0). Module Revived: oEmbed Providers 2.2.4 Module oembed_providers updated after 7 months of inactivity (2.2.4). Usage Milestone: Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Views Custom Table

4,902 sites Security covered
View on drupal.org

This module allows you to integrate your custom database tables into Drupal's Views system. It automatically maps your table's data types and enables you to create relationships between your custom table and Drupal entities, making the data accessible within views.

About

View custom table module provide you functionality to integrate your custom table data to views, and access all it's column in views. This module use hook_view_data to add custom tables in views. this module provides you following functionalities.

  1. Auto integrate custom table data to views
  2. Auto map mysql data types with drual data types
  3. Extend relationship of custom table data to drupal entities

How to use:

  1. Download and extract files in module folder.
  2. Enable module from module list
  3. Go to Home » Administration » Structure » Views » View Custom Table
  4. Add your custom table in system using "Add Custom Table" link
  5. Add Relationship with drupal entities if any, otherwise leave none.
  6. Clear drupal cache
  7. Add a new view and you will see your custom table name in "Show" drop-down field.

Notes for developers

  • Each custom table must have a primary key.
  • Column related to drupal entity must be numeric.

Drupal 8

Steps to install module and use module is same, but for drupal 8 date sort is not implemented yet, we will update it very soon.

Install with Composer: Drupal 8 & 9
$ composer require 'drupal/view_custom_table:^2.0'

Activity

Tracked releases
2
Tracked since
Jun 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.9 Stable Jun 18, 2026
2.0.9-rc1 Pre-release Jun 18, 2026