This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Clear cache stops existing hooks from working

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.

Manage The Number of Items Processed by a QueueWorker

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() ?

Thanks in advance for your advise

A module for making use of Custom Filters

I have a question about the editor in Drupal 9.

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.

REST view - get duration of video (Media content field)

Hi,

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).

remove adjustments not working

Hi im trying to remove the order adjustments by code.

i check in the commerce documentation:

https://docs.drupalcommerce.org/commerce2/developer-guide/pricing/adjust...

And i do this:

Sticky Header Menu on Danland Theme

Hello, am newbie to drupal. I installed drupal on my localhost and install Danland for my theme to use. I like the theme as it looks clean and chose this for my project. I am trying to make the main primary menu sticky when scrolling up. Need solutions to make this happen. Thanks

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions