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.

Teligram:@Ruger420 coke for Cash Vendor in Sydney

Singnal I’d: Budplug.40 Best vendor for hand to hand deal 

C.o.k.e Plug Near you In Toronto Tele.gram/@Budplug40

Singnal ID Budplug.40 best Coke vendor in Montreal 

How to tell if hook_post_update_NAME function was previously executed?

I maintain a module and for its new release I want to display a message about an important change in the release. For this, I am relying on having a new hook_post_update_NAME function in the new release to display the message but only if the function has not been run in the past.

The function myModule_post_update_notify in file myModule.post_update.php has this content:

$existing_updates = \Drupal::keyValue('post_update')->get('existing_updates');

Maintenance mode: how it gets enabled, and is there any audit trail?

Three questions about Drupal:

1. What mechanisms exist to put a site into maintenance mode?
   I know the UI and drush — is there a complete list?

2. Where can I check who enabled it? 

3. Is it expected that, after leaving maintenance mode, a site
   sees a burst of requests and a jump in database server memory?

Thanks.

Add jQuery and CDN to all pages

I'm struggling with Javascript functionality and want to add jQuery to every page as well as a CDN link. I thought the first could be solved by amending the main theme library - e.g.

global:
  js:
     core/jquery

but this doesn't work. I've sifted through a lot of posts but can find an example of either use case. (I can achieve both of these requirements by CDN url's between <script> tags on a Basic Page.)

Any help much appreciated. Thanks.

Pages

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