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.
In commerce kickstart 2.x it's possible to create a view of messages with a form to enter a new message right in the footer or header of the view. This isn't currently possible with "vanilla" Message.
According to Bojanz' comment (http://drupal.org/node/1714922#comment-6335264), the views handler in commerce_backoffice is generic enough. So here's a starting point for a patch:
http://drupalcode.org/project/commerce_kickstart.git/blob/refs/heads/7.x...
http://drupalcode.org/project/commerce_kickstart.git/blob/refs/heads/7.x...
Comments
Comment #1
amitaibuIt's a little hardcoded still to commerce order, I'd be happy to review a patch that removes relation to Kickstart.
Comment #2
a.ross CreditAttribution: a.ross commentedAm trying to create a patch, here's another file which is relevant: http://drupalcode.org/project/commerce_kickstart.git/blob/refs/heads/7.x...
In commerce kickstart, the relevant message bundle has an entity reference field to relate the message to an order. This field is automatically filled in by the Views area handler in commerce_backoffice, but this is hardcoded. It's also possible to change the bundle type of the message, as the user entering the message.
What would be appropriate for this patch to supply? A regular entity creation form with the bundle type selectable by the handler? Do we want to make it possible for the administrator to pre-populate fields with tokens?
And if we choose to go the simple route, how would that affect commerce_backoffice?
Comment #2.0
a.ross CreditAttribution: a.ross commentedUpdate reference to commerce_backoffice files.
Comment #3
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented