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 render a custom field in a view


I create a module for generating a custom field in a view.

It works but the $phrase generate is not html because the sentence is contained in quotation marks.

Add SPAN to buildForm?

Hi. I want to apply some style to a form generated by Simple GSE module but I don't know how to do it in the template. I need to add a simple SPAN tag after the text field.

This is the code from SearchForm.php:

Automatic node creation every month

Hello everybody,

   I have created a node type that has a select option field, called notice. I want every month, on specific days with cron (if there is another way tell me), to check all nodes that have that field and create new nodes with some different data.

I have made the dynamic query that fetches all nodes:

How to display a field of the parent store in my module ?

I have a Drupal 8.7 site with the Drupal Commerce 2.14 module.

I created a marketplace (several merchants on the same site). In the store type, I created a "Text (formatted, long)" field with the machine name field_terms_and_conditions.

In this field, the merchant writes his general conditions of sale, which the customer will have to accept during the order process.

Commerce 8 adding price products attributes


I am developing a e-commerce web site with drupal commerce, everything is okey but I have a problem,

I want to add price(add to cart) product attributes. 

Exp: Coffee: 2$

      add milk: +1 $

     add honey: +2 $

cart: 5$



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