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

Ajax table form with tabledrag only works after the first submit

I've got a custom ajax form table where the rows are draggable via. #tabledrag.

If I drag around some rows and press save/submit, the rows appear to pop back into their original places.
But upon reloading the page, the rows are in the correct position, the way I dragged them.

How to Import Mysql Database using custom module

Can anyone please give some insights about importing MySQL database using custom module, without using any contributed module dependency.

More details :I need to spin off sub-sites using Drupal Interface. For that I need to take a dump of existing database and Import it into new database.

Moving a file outside of the public directory

Hi there,

There's a contrib module I'm using that creates a file in the public directory every time cron runs and I'm thinking of making a module that moves this file out of the webroot into a folder on my server.  The way I envision it working is to use the hook_cron to execute a bash script on my server, which then moves it to the desired folder. 

Add a Form to the Block Configuration for a drupal Block in Gutenberg

Hello!

Context:

I took the Gutenberg example Block and I put it in my custom module, so I have \modules\custom\my_module\my_module_blocks.

In my_module_blocks i have a yml file my_module_blocks.info.yml, and I installed My Block in Extensions.

So my question is:

I'm in Gutenberg, I add the block my_module to my page, and at the right of the page, on the side bar, there is a Block Tab.

clic on image link counter

hi everyone, i have my module banner that contains image which is linked and display on site, what i need to add my module to see how many times someone click on my image? i need to see statistic drupal 8

node_delete_multiple issue

I am creating files to be run in different situation using scheduled cron jobs. These are mainly for either cleaning nodes, updating or doing other calculations automatically. The drupal site is running in devdesktop.

I have a few of them and so far I have no problem making them do what they should. They all have the same structure and format, using the same basic db functions or node_delete_multiple.

Pages

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