Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.6.17 Update released for Drupal core (10.6.17)! Release: Drupal 11.3.17 Update released for Drupal core (11.3.17)! Release: Drupal 11.4.7 Update released for Drupal core (11.4.7)! Release: CKEditor 5 Plugin Pack 1.5.5 Minor update available for module ckeditor5_plugin_pack (1.5.5). Release: CKEditor 5 Premium Features 1.8.4 Minor update available for module ckeditor5_premium_features (1.8.4). Release: AI (Artificial Intelligence) 1.3.14 Minor update available for module ai (1.3.14). Release: AI (Artificial Intelligence) 1.4.9 Minor update available for module ai (1.4.9). Release: Copyright Footer 3.3.0 Minor update available for module copyright_footer (3.3.0). Usage Milestone: Schemata Module schemata crossed 1,000 active installs. Module Revived: Commerce Stripe 2.2.2 Module commerce_stripe updated after 6 months of inactivity (2.2.2).

Views Custom Table

4,487 sites Security covered Drupal 10–11
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'

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Sep 2024
Latest release
2 months ago
Releases (12 mo)
2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.9 Stable 10–11 Jun 18, 2026
2.0.9-rc1 Pre-release 10–11 Jun 18, 2026
2.0.8 Stable 10–11 Oct 9, 2024
2.0.7 Stable 10–11 Sep 30, 2024