Play well with other modules

Created on 3 June 2024, 7 months ago
Updated 4 June 2024, 7 months ago

Problem/Motivation

If your content is using automatic node title, the reference does not get created

Proposed resolution

Call the hooks processing for forms so that other modules can keep processing (maybe before and after presenting the form)
Don't really know how to go about this in Drupal > 7.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇵🇹Portugal Miguel Andrade

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Miguel Andrade
  • 🇵🇹Portugal Miguel Andrade

    Also, I'm using a Workflow state for the new entity type. If I have a mandatory comment configured for the workflow initial state, it does not get enforced. Maybe it's the same problem.

    I do not see the errors displayed on the form, like if you don't fill the title. The form gets reloaded, but no indication of what went wrong appears. I'm not sure if I have any theme issue here

  • 🇫🇷France lazzyvn paris

    I don't understand the problem you're presenting. If you don't have experience using Drupal, you can hire an expert who might know how to explain the problem more clearly.

  • 🇵🇹Portugal Miguel Andrade

    Well, let me try to make it very clear:

    at least this modules:

    • Automatic Entity Label
    • Workflow (if you make the workflow transition comment mandatory)
    • Node Reference URL Widget

    Do not work with your module.

    I suspect any contrib module that changes something on the entity form does not work also

    That's it.

  • 🇫🇷France lazzyvn paris

    Surely not. But with Drupal you have enough hooks to do what you want hook form, node presave,...
    Basically, it only calls the entity's form builder. If other modules also do the same mechanism, it'll works. If you want, you can create a patch and I will merge it in the module

  • 🇵🇹Portugal Miguel Andrade

    Yes, that was my idea for proposing a solution. Anyway, I moved on, I'm using another solution. I also couldn't find a way to translate the text appearing in the modal.

    Anyway, thanks for your time

  • 🇫🇷France lazzyvn paris

    Which text can't you translate? In the module there is no text to translate if you want the title of the modal to create entity, in hook form you can use classic drupal with $form['#title'] = 'whatever'

Production build 0.71.5 2024