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

Getting incorrect Current Path after redirecting from Form after submission

I'm receiving an incorrect Current Path after I return from a submit function in a form and not sure why. Here's the details.

I have a custom route /picture-game that renders the PictureGameForm and the route is loaded in an Ajax Dialog Modal.

How do you flag stores when they are updated with a specific input method ?

I installed the following module on my site :

https://www.drupal.org/project/form_mode_manager

I have created an "Input Modes" in "Display Modes" for the store type with the machine name commerce_store.shipping_methods

/admin/structure/display-modes/form

I created a custom module to automatically flag stores that are updating.

block some 3rd party cookie

Is there a way to block some 3rd party cookie in a website?

Module Advertisement

Does anyone know how to configure this module in drupal 7?

Hope to see a comment.

Instance a service class once in a form

I have a form that is used to play a game (users select between one of two images multiple times) that utilizes a service class that manages loading images, calculating results, etc. How can I instance this service class one time so that it doesn't get re-instanced every time I rebuild the form, do you have to do it in form_state?

I was trying to do it in `__construct` because I thought that was only called when you first instanced the form, but when you rebuild the form it gets called again so my service class gets re-instanced. 

Workaround for Drupal Logger's extreme inefficiency

The default Drupal logger is so inefficient it can't even print out an array containing two content-types, what gives? I'm trying to log an array that contains two content-types but I keep getting the error that I've ran out of memory, which is ridiculous because I currently have my setting at `512M`. 

It seems crazy to me that it takes Drupal more than 512MB to log some text.... 

Pages

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