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.

Removed image from node, but not removed from folder

Hi All,

I am removing image from node its removing,
But its not removing image file from folder and also not removing db entry of that image.

however, If I add or remove images in my separate content type created for this testing, its working means removing form folder and db.
not understand what is the issue.

If any configuration setting I need to do with that image field, so it will remove image file from folder, when we remove it from CMS node.

Please suggest!
Thanks
~Dinesh.

Items_Attributes_Array not applying from hook_preprocess_field

hook_preprocess_HOOK let's me use template_preprocess_field in my module code, which is great.

So I'm running my hook to get a 'first' class on the first item of each field's entries.

I've read through this by Aten and it's a comprehensive explanation which ultimately doesn't work.

Drupal 8 Date Element

I am currently using 8.17 and here is my code:

Call Module in every page

Is there any way in Drupal 8 to know whats the current page url in custom module.

I mean if I call dsm, then on every page it should give me that page's url.

I know the function to get current path, but dont know where to call them

How to open a new tab in browser from a ctools modal form ?

I'm creating a module with differents forms. I have some forms which are modal forms using ctools.
On one of these modal forms i made a button to open a pdf on a new tab in my browser but it doesn't work.
I have a AJAX error.
This is my code:

Pages

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