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 connect drupal with mssql

Hello all,
I want to connect to a module in mssql and display information from the table.
I know I can do it through pdo, but how do it on drupal classes.

I have drupal installed on mysql.

Hide a form after successful submission in D8?

I built a module that includes a form. After submission, the thank you message is displayed but the form stays on the page. Is there a way for the form to go away since users do not need to see it after submission? And this is Drupal 8. Thanks!

How to call an hook from another module?

Hi all,
on Drupal 7 I have a module with the hook: mymodule1_methodX($id,$country)
I'd like to call this function (mymodule1_methodX) from another module (mymodule2) passing the two parameters.
Is it possible?
Which is the right syntax?
Thank you very much

cld

How to delete boost cache with arguments.

Hello, I have a page with this url: demenagement/guides and also I have a view in a block with pagination, the point is that Boost create this files:

  guides_.html
  guides_page=1.html
  guides_page=2.html
  guieds_page=3.html

I also have Expire module, and in custom pages I try this:

  [node:url]|wildcard
  [node:url]?|wildcard

Any suggestion to update the cache of boost?

Thanks

Oskar

Warning: Creating default object from empty value in Drupal\Core\Entity\ContentEntityForm->__construct()

I'm currently working on a site that has a number of custom entities. Two of these entities (Primary and Secondary) are referenced using entity reference where the cardinality of the entity reference for Secondary is set to unlimited. So when creating a Primary entity, the user can create multiple referenced Secondary entities.

Pages

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