Module File Editor
Module File Editor offers a web-based tool within the Drupal admin interface to view and edit module files. It includes a file browser and a syntax-highlighted code editor, allowing for direct management of module code without needing server access. Access is controlled through Drupal's permission system.
Module File Editor provides a web-based interface for viewing and editing module files directly within the Drupal admin UI. It features a file browser, a syntax‑highlighted code editor, and save functionality, making it easier to manage custom module code without direct server access.
Key features
- File browser to navigate module directories and files.
- Syntax-highlighted editor using Ace Editor
- Permission-based access control integrated with Drupal roles and permissions.
Requirements
- Drupal 9 or later (Drupal 10 recommended).
- PHP 8.0+ (match Drupal requirements).
- Appropriate file permissions for the web server user so the module can read and write theme files.
Installation
- Place the module folder module_file_editor into your Drupal modules/contrib or modules/custom directory.
- Run drush en module_file_editor -y or enable it through the Extend UI.
- No need to configure anything as it is a basic module.
- Just go to Configuration → Development → Module File Editor to start using it.
Security Notice
Important: This module grants direct access to module files. Only enable and grant access to trusted administrators.
Improper edits can break site functionality or create security issues. Consider restricting access by role and using this module in trusted environments only.