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

How to add class to table row from rendered array

Hi,

I'm new at using Drupal, I'm trying to generate a table with different colored rows, based on a status variable, so I created a class based on that status.

This is part of my code:

Update $form_state of one form from another.

I am working on some functionality that is 'similar' to the 'browse available tokens' functionality in Drupal core. I have a main form that has a link that opens a modal (with another form in it). Inside that additional form, users are able to search in that form, and each result comes with some data as well as a 'add to item' button. When the user clicks 'add to item', it closes the modal and updates the main form with the relevant information from the sub form (based on the unique results button they clicked on).

custom content entity module failed to create database table

Note: I originally posted this in a different sub-forum, so I copied it here because it seems more relevant to module development than general post-installation support.

How to remove/rename a project from Download & Extend?

I have created a module project page into Drupal Download & Extend, but I made a mistake specifing the short name of the module (and also on the project repository name in the Drupal GitLab).

I would like to change the module  short name and the project name on the Drupal GitLab.

If it won't possible to amend, how I can remove all and start it again.
(I haven't published code yet in the Drupal GitLab project repository).

Regards,

Views Module Content: Group ID not showing on Filter Criteria

Hi all! Hope someone can help me figure this out.

I have the Views and Groups Module installed and enabled. I want to create a view that shows all groups except for group 66. I was following these steps but I got stuck on step 6. I cannot find Group ID on the Filter Criteria. I do see group ID on the list for groups. How can I fix this? I am using Drupal 9.

Steps I was following to create a view that shows all groups except group 66

  1. Make sure you have the following modules installed and enabled:

Please help

Error message

Warning: Undefined array key "database" in Drupal\mysql\Driver\Database\mysql\Schema->getPrefixInfo() (line 60 of core\modules\mysql\src\Driver\Database\mysql\Schema.php).

Pages

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