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.
So let's see if I have figured the Drupal/Composer work flow:
Given that using Update Manager and Composer are not the best idea on a production site. Also since I'm on a shared server at a Hosting Company (HostGator) I can't run composer on the same server as the production site. Because of that I will have a Linux PC with Composer and Drush for development and testing.
I'm working on a Drupal 8 site, trying to add a rule to send an email when a user with a certain role creates a certain kind of content. Basically a Broker uploads a file and submits it, and that's all they can do. These are created against a content type of medical_record.
I've tried @node.node_route_context:node, and then check for a content type of medical_record. When the rule is executed, this makes an error of:
Unable to get variable medical_record, it is not defined.
I'm facing an issue with hooks. The documentation is totally unclear and not very helpful..
However I'm creating a module named utf_main so technically my hooks must be renamed with utf_main. So I do. I've now template_preprocess_utf_main hook.
So, my question is really simple, why the hell no one of my hook (I've tried a lot!) aren't readed by drupal ? I can do whatever I want in theses hooks (event mistakes), drupal just don't get it, it's driving me crazy. Oh and yes, I've clear the wonderfull Drupal Cache.