Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Over in #1654968: White screen on the chatroom page, blackclover asked: "Do you have any plans on making the chatroom field available in rules so we can use the set data action on them."
this sounds like a useful feature, though i don't really know rules, so opening this issue to track the work. patches / pointers welcome.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commenteds/views/rules/
Comment #2
markwk CreditAttribution: markwk commentedJust a heads up: the chatroom archiving module has rules integration for handling archiving chats. I'm interested what additional rules integration would be wanted?
Comment #3
blackclover CreditAttribution: blackclover commentedMarkwk I checked out you module and it is useful but what I need is to use the 'set the data value' action for chatroom fields similar to other cck fields. For example I would like to automatically set the chatroom title to the nodes title and be able to access all the other properties, public, roles and archive. Almost all the nodes on my site are created via a scheduled rule triggered by the status of the project so no human actually edits the document until after it is created and pre-populated with the appropriate data. It would be nice if a human didn't have to go in and edit these nodes to activate the chat beforehand.
Hope this helps.
Cheers
Comment #4
markwk CreditAttribution: markwk commentedYeah, my module does a pretty specific thing. Writing the code for the kind of rules integration you want shouldn't be too hard. I also suspect that the views integration would be pretty straightforward too. Just need to define the info so it's properly exposed to rules or views.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedi've committed a fix over in #1873550: Fatal error: Cannot use object of type Chatroom as array when updating a node via the node admin form.
re #3 - is this still broken for you? what else needs doing if so?