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.

Module release scripts (security)

Hi.

I'm not one of the contributed module owners, hosted by drupal.org, so forgive me my ignorance.

How can I perform an action dependent upon CAPTCHA results in a custom form?

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?

How to programmatically trigger Picture/Breakpoints to (re)generate images

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.

I want to capture all admin activity

Hi,

My requirement is to capture all admin activities. Here are the activities which I want to capture -

  • Content Create
  • Content Update,
  • Content Delete,
  • User Login,
  • User Logout,
  • User Create,
  • User Update
  • Change in permissions
  • Change in settings

Shall I proceed with any contributed module such as Activity or create a custom module for this?

Please suggest.

Thanks.

result not showing only after here and there checking ?

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.

Regards.

Pages

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