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

One stop documentation for module development

I am a very experienced Drupal 7 developer.  13 years.  I am now undergoing the unpleasant process of learning Drupal 10.  

What I am looking for is the definitive "how to" on module development.  Something that spells out what each of the files are, what all of the parameters are and how they interact.  From the very start: creating something that will appear on the Extend list, all the way to custom forms and menus and more advanced elements.

Any suggestions?

Multi Factor Authentication

 I see there exists a commercial contrib module but my first impression is it is not something I want to use. I'm looking at coding by own solution. Any ideas where to start? (.module hooks, classes, services, ..etc?) You have to modify the new account and change password process. I also have to add a table or two to store a fingerprint for each user and maybe a secret key and temporary passcodes.

Data model

Hello everyone, I need to obtain the model or data structure of a database in drupal 9.5.11, I already have the SQL dump of that database but not the relationships between the tables. Can you guide me on how to obtain this?

LDAP Manual install issues

I have download and installed Active Directory / LDAP Integration manually. I go to configuration/people but there is no selection to configure it. What am I doing wrong?

 

Best approach for creating content types and handling different styles

Hi,

I'm new to Drupal.  We're converting our current site to Drupal.

Some of our content types have a specific purpose. But, some are sort of generic, the only difference is the styling that is applied to them. Some pages have cards that are larger with text beneath an image and some have text wrapping the image. Some have a background that is slightly different,etc. The users insist on having everything the same in the Drupal site. What is the best approach to creating content types and handling the variations in styling?

Thank you

[SOLVED] hook_ENTITY_TYPE_presave() not working

I'm working on a custom module to update a field "curryear_birthdate" in an entity "Person" in my Drupal 10.2.4 site using the hook_ENTITY_TYPE_presave() construct.  I followed the template that several Drupal guides showed.

I have two problems:

1) The field doesn't get updated; and
2) I put a debugging display in to see what might be the problem and the display is not appearing.

The code for the .module is shown below.

<?php

use Drupal\Core\Entity\EntityInterface;

Pages

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