


Using group and rules modules to automatically create group for new user
I am using the Group (not OG …) and rules modules for this task. I created group type, Applications Support. Then I created a rule, After saving a new user. Under the rule, I used the following configuration, but it did not create a group. My previous question... read more
AJAX form submit error when sending form to twig in hook_preprocess_page
I have a simple AJAX form that I can’t submit when the form is passed from module to the template in hook_preprocess_page. The same form works fine if sent from controller, it’s just that the layout is complicated and I prefer to write the HTML part in the... read more
How to programmatically render a webform to display specific Elements
I have tried this way but not able to hide “confirmation_id” element. public function buildForm(array $form, FormStateInterface $form_state, $sid = NULL) { $my_webform_machinename = ‘request_form’; $my_form =... read more
Can’t update radio button fields after ajax callback
I’m having troubles with a FORM in Drupal 8, the idea is: Chose a radio value from radio-estaciones to recharge radio-contaminantes, but, after the callback, the result I see is empty, but in replace command I use, I see it correcly This is the code of buildForm... read more
Please Welcome to Mastodon instance for open-source developers!
Hi All! I am Drupal web-developer. Working with Drupal since 5.x version. I love Drupal and it Big Drupal community! I work with Drupal and other open source projects every day. I decided to open a comfortable place where I can share and discuss my thoughts. Mastodon... read more
Override a CSS or JS file from the parent theme
Adding in the child theme a CSS file with the same name as the parent theme CSS file overrides the parent file. It doesn’t seem to work JavaScript files. How can I override a JavaScript file loaded from the parent theme? read more
views_get_current_view performance
Does this function views_get_current_view inside views header or footer (to count rows number for example) means running the same view twice? Or is it somewhat simplified version of running full view? Thank you. read more
How do you deploy a change to a main menu?
We have a small D7 site. We want to deactivate a main menu item. On dev server I was able to deactivate it in /admin/structure/menu/manage/main-menu I believe The menu is stored in the DB, right. Also in a config file? So you only need to deploy those two things and... read more