I've written a custom module with several forms created via form api. I'd like to classify the forms with existing taxonomy. I don't want to add a form element that allows taxonomy selection, I want the form to be classified so that it shows up in taxonomy pages.
I've googled, but nothing is showing up related to forms except how to create a taxonomy select. How do I do it?
Thanks for the help!
My form is created in a module file. color_calc/src/Form/DefaultForm.php
We have requirement where we need to show "CONNECT" button under user profile for sending Friend request with 'accept' and 'reject' option.
When user accepts friend request then under his user profile pic button should change to "MESSAGE" to send the message.
Whoever sends friend request it should be shown in notification widget near user profile image. I used private_message module however it just sends message as chat directly without sending friend request.
Friends modules does this, however is not compatible with Drupal 9.4 version.
Hello, i am writing a module für Druapl 9 (9.4.8) which atm. is just printing a few messages when visiting nodes or forms.
My problem is that when i clear the cache via /admin/config/development/performance all these hooks stop working until i trigger a cache rebuild via "drush cr" or until i reinstall the module.
I have a queueWorker plugin in a custom module.
QueueWorker is using the content of queue items to send emails.
One item = one email.
It's very convinient and it works! QueueWorker is sending emails up to time limit.
Now I would like to send email with a more precise time rate (for example: not more than 30 mails per minute).
I cannot find how to code the QueueWorker plugin so that it will unpile only a limited number of items per cron session. Is it feasible or should I use a hook_cron() ?
Our site is a financial institution. Often mentioned on pages are rates for the subject of the page being viewed. Cars, Mortgage, IRAs and so forth.
We have a central area on the backend for our rate values input. But when pages are being written the rate value at the time is entered as part of the text. I had n idea for a module and was hoping for feedback from folks on if the following is a good solution, or if there is another I might be advised to consider.
I'm developing a rather simple Netflix-like interface in Drupal 9. Imagine a "Series" content type taht has a list of episodes. An Episode is a content type having some metadata and a Media type (more specifically a video).