Install
Works with Drupal: ^9 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Google Review 2.1.0 Release Notes
What's New
This release modernizes the Google Review module with significant architectural improvements, better Drupal integration, and support for multiple Google Review blocks on the same page.
New Features
Added support for multiple Google Review blocks on a single page.
Added a global module configuration page for the Google Maps API key.
Google Maps JavaScript API is now loaded only once, improving performance.
Added unique wrapper IDs for each block instance.
Improved JavaScript initialization using Drupal behaviors and once().
Added configuration schema and default configuration.
Improvements
Refactored the module to use a service-based architecture.
Implemented Dependency Injection following Drupal best practices.
Simplified block configuration by moving the API key to module configuration.
Improved code organization and maintainability.
Updated documentation with installation and configuration instructions.
Added compatibility with Drupal 11 while maintaining Drupal 10 support.
Code Quality
Updated code to comply with Drupal Coding Standards.
Cleaned up PHP and JavaScript code.
Improved overall module structure for easier future maintenance.
Compatibility
Drupal 10
Drupal 11
Upgrade Notes
After upgrading to 2.1.0:
Configure your Google Maps API key at:
Administration → Configuration → Web services → Google Review
Existing Google Review blocks continue to work. The API key is now managed globally instead of per block.
Clear Drupal caches after upgrading:
drush cr
Future Plans
Development for the next release will focus on:
Migration to Google's new Places API.
Review caching for improved performance.
Automated tests.
Additional configuration enhancements.