


How to make a checkbox read-only/disabled from list of user entity references
In my Content type, I add a field Reference: User with unlimited values, Reference method from a view of user managers, and widget checkboxes. Basically when a user manager edit the node, he can only check the box with his own name. The other checkboxes are set to... read more
How can I tell, in hook_form_alter(), if a node form is for the node in its default language or a translation?
I’m implementing hook_form_BASE_FORM_ID_alter() in a custom module. I’d like to know if my form is for the node in its default language, or a translation of that original node. read more
For which tables should the MariaDB user have CRUD permissions for browsing the site?
I’m trying to lock down the database on my Drupal 9 install so that people can browse the website, but can’t write to it. I have 2 users in MariaDB with access to the database. I want to set one account to only be able to write to the needed tables for... read more
Update Alias Programmatically
I have a large website with 240 urls that need to be updated. I would like to do this programmatically to avoid making errors. I created the following function which seems to work. There seems to be a good bit of complexity here for what I am trying to accomplish. Is... read more
Drupal Development and Support Plans
Drupal Site Development Drupal development is our business here at Pixedust Drupal, we specialize in developing custom content-driven sites and web applications using Drupal. 03 August 2021 HOUSTON | AUSTIN | DALLAS
read more