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.
Hi, I'm creating a module to create alerts about student absences I have 1 type of content called attendance that has
fields title, field_student (reference to content type student), field_subject (reference to type of content subject) and a field to know whether or not it was a list of integers I need to count how many absences each student has per subject and create another type of content that will be alert I appreciate any idea in advance
I'm getting "Error: Call to undefined method stdClass::id() in Drupal\views\Entity\Render\TranslationLanguageRenderer->preRender() (line 91 of core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php)." whenever I go to admin/structure/taxonomy, edit the Department vocab, and then try to click on one of the terms.
If I click the edit button next to the term, it lets me make edits and save fine but whenever I try to click on the actual term or try to use the term id in a view, it gives me that error or completely breaks the view.
Why hook_entity_update doesnt work if I masquerate as translation_manager
if I login as administrator everything goes well, but as translation manager this hook never triggers
this is happening in translation jobs when I select more that one language and I click on the checkbox "Submit all 2 translation jobs with the same settings".
I would like to create a block in a custom module and have the block display a form or some text but not both. How would I determine if the form was submitted successfully so the code could either return the form or the text?