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.
I currently have a custom form and have successfully added a CAPTCHA to it, but I would like to set a cookie when the user passes the CAPTCHA successfully. I'm looking to add it into my form validate function on my .module file, but I can't figure out how to check if the user passed the CAPTCHA. Any ideas?
On my server (CentOS) I have a folder of images from an outside source. I have a custom entity to display the images. I'd like to use Picture/Breakpoints to generate the image styles for mobile devices as well as display them since it works so well (FlexSlider too!).
Is there a way to trigger the generation of ALL the various image styles without relying on a visit from an actual mobile device or tablet?
I'm guesstimating 30,000 to 60,000 original images. Daily updates may include several hundred.
Many times codes written by no result got effective,
for example, A preprocess function to assgin user role to body classes
but after finishing the function, role name not showing as class name,
but only after some time of cache clearing, finally it shows up
so Can some one help us to tell us
1, do you encounter this situation?
2, how would you handle it.
3, it s my error in handing or some time we need to clear c ache 2 times ? but even one time it cost minutes, seems too long.