This is a very simple Drupal 8 module to override the default node create, update, and delete form titles and button labels.
Often times when building a Drupal site I find myself using hook_form_alter to change the page titles and button labels based on certain conditions for that content type. This module aims to make that easier by putting some of these common overrides in the config of the content type using thirdPartySettings and supports tokens.
Although I have been using Drupal for many years this is my first contributed module. I hope I got all the application steps correct. Thanks!
Project link
https://www.drupal.org/project/node_form_overrides
Git instructions
git clone --branch 1.0.x https://git.drupalcode.org/project/node_form_overrides.git
| Comment | File | Size | Author |
|---|---|---|---|
| node_form_override_screenshot.png | 81.76 KB | loze |
Comments
Comment #2
loze commentedComment #3
avpadernoComment #4
avpadernoComment #5
smustgrave commentedAutomated Review
[Best practice issues identified by pareview.sh / drupalcs / coder.
Found
Returned this Deprecated function: Function Redis::delete() is deprecated in Redis_Lock_PhpRedis->lockRelease() (line 111 of /var/vhosts/c214000000/site1101/web/public/sites/all/modules/contrib/redis/lib/Redis/Lock/PhpRedis.php).Manual Review
I ran a code check locally and got the following
The README.txt file just lists the modules name. Would follow guidelines for in-project documentation and/or the README Template
There's no composer.json file where your license and any requirements would be.
The .info.yml file should have a core_version_requirement to specify if it's D9 ready. Also don't think you need '' around your dependencies anymore.
Haven't tested the functionality yet.
Comment #6
loze commentedThank you,
I've made the corrections and committed the code to the repository.
Comment #7
smustgrave commentedRan phpcs again and just one more error
Also in the .info file could you change the package name? Not a stopper I believe but that package may be specific to your project.
Also not a stopper but following the steps in your README "unser" believe is a misspell.
In the .modules file "lables" is misspelled.
Small things just wanted to point out.
Installed your module locally and functionally everything seems to install correctly.
Made changes to the labels and saw those being reflected so it appears to be working also. Not seeing any issues.
Comment #8
loze commentedI've committed the requested updates. Thanks.
Comment #9
smustgrave commentedEverything looks good to me.
Comment #10
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.