Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Is there a way to give roles to users that have permissions applicable to a certain country? For example, I only want an admin for the country Brazil. So they can add users to the Brazil site but those users would not be reflected in another country site like Canada.
I have a form with a textfield for quantity and payment_reference field. I want to refresh the payment_reference field when the quantity is changed with ajax. After ajax call, the payment_reference field is not refreshed with the new quantity number. the form build code is like this:
Drupal (8.8.4) status show "Opcache not enabled" - I have a test php which concurs with this.
My ISP (Justhost) helpdesk tech support (though very helpful) insists that opcache is installed and "The server admins just replied and they said to ignore the message as its just a glitch and they said that its enabled from server end and you may not have to worry on it ".
I do worry though - as this message doesn't appear locally on localhost then there would seem to be a problem at their end - How can I be sure that it is actually working?
The ITF Seafarers is a platform that is a part of the ITF (the International Transport Workers’ Federation), dedicated to all water transport workers around the world. From maritime news and being informed on the workers’ rights to contacting ITF staff in case of emergency, the ITF Seafarers is a one-of-a-kind information hub for all maritime workers.
I'm developing a module where one of the elements is a multiple select box. The data for this box is a complex set of a couple of hundred taxonomy terms.
In order to display these terms in a custom form, in the buildForm function I add these terms to a render array. I then add css classes to each of the terms, dependent on their parents, if they have children, and on specific term fields. This processing takes a couple of seconds each time the form is opened.