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

THIS FORUM IS NOT FOR "What module..." or module support questions-- it's for module development and code related questions.

The module development and code questions forum is intended to aid those who are developing modules or writing code for Drupal.

Please note that this forum is also not intended for "Is there a module that does..." or "I need help with module x..." questions. It's also not a place to ask developers to write your code for you. Please respect this.

Please do not post general discussions intended to target module developers. If the question you have isn't specifically related to writing a drupal module, please post it in a more appropriate forum.

  • If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
  • If you have a problem or question about a specific module, you should create an issue in the module's issue queue (after checking for an existing issue first).
  • If you don't have drupal installed yet, please place your questions in the Before you start forum.

How to hook into Commerce after payment complete

I need to be able to run code that does not output any data to the user after a user's checkout is complete, but I can't seem to figure out how Commerce wants me to do it. I don't see any *.api.php files that would give me payment hooks. It looks like Commerce wants me to create a separate Checkout Flow plugin that would add the step I want, but I can't seem to find documentation about implementing my own Checkout Flow.

Can you guide me to the right path of running my code when the checkout is complete? Am I on the right path? Can you point to Checkout Flow development docs?

I can't remove #theme_wrappers functions from $variables in hook_preprocess_HOOK

Hi! I want to remove fieldset wrapper around radios element in my custom form. For this I use hook_preprocess_HOOK:

function mymodule_preprocess_radios(&$variables) {
  $variables['element']['#theme_wrappers'] = [];

But fieldset wrapper all the same remains in output html on page.
How to remove fieldset tag ?

hook_form_alter on

Dear everyone,

Migration Module - Rules not working properly

Hi There,

I'm using the migration module to import information from a legacy database and having a little bit of trouble.

The migration class in question imports pets from a table (old db) and creates new pet nodes in the drupal database. So far, so good. The pet migration class is also connected to the user migration class. This means that I can set the author (uid) of each pet to the appropriate new drupal user. Again so far so good. This also means the setup is more or less the same as the old database.

Menu block gets alot bigger when logged out


I am working on a website for a customer and i stumbled upon a problem. I made a menu that can be changed into 3 languages. this morning it was looking/working completely fine. But when i tried to put in the country flags the whole layout got ruined (only when logged out)

This is how the menu block looks when logged in:


Subscribe with RSS Subscribe to RSS - Module Development and Code Questions