


Authentication cookie in a load balanced environment
Hopefully this is a basic question. I’m going to be setting up a drupal website there there will be multiple servers in back of a load balancer. The user will hit one web server where they will authenticate and the cookie will be added to the browser’s... read more
Programmatically get current multi-site instance name
Let’s say I have the following multi-site setup: $sites[‘hello-world-a.com’] = ‘a’; $sites[‘stage.hello-world-a.com’] = ‘a’; $sites[‘dev.hello-world-a.com’] = ‘a’;... read more
How do I display labels in checkbox grid table?
I managed to create table grid with checkboxes, however I can’t get the label to display in first column. What am I missing, could you guys help ? Thanks! This is what I have in backend Update: Drupal issue:... read more
Module requires Composer install of third-party library
I am trying to learn about drupal 8 and composer within aegir. It seems like aegir has some support for it but the problem that I am running into right now is that aegir doesn’t seem to install composer dependencies for modules. For instance, I am using the... read more
How to remove a term programmatically from entity reference field using entity browser on translation form?
I have a content type “Articles”, this is a multi-language site, by default the content is created in English, and then translated into Spanish. On new article in English, I set a title and a term for the “Category terms” field, this field is... read more
Submission handler for the user registration form doesn’t work
I’m working on a Drupal 7 portal. I added a custom field to the registration form and I would like to get hold of custom field value when the registration form is submitted and before it is stored in the database. I’m trying to use the submission handler... read more
Custom sort with search api
I have created a ViewsSort plugin that works on a normal view (like taxonomy_term) but not on a view based on Search API : it is not present when I click on “Add sort” in BO. This sort is used to create a custom order of content types, and I use... read more
How do I add the "error" class when a form validation fails?
I’m working with Drupal 7.56 and I am using the Webform module to create a custom form. I used hook_form_alter() in a custom module to add a validation test. function mymodule_form_alter(&$form, &$form_state, $form_id) { if... read more