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.
I applied the patch manually but I was unable to get it to work. As is, I had to change 'options list' => _privatemsg_rules_filters, to 'options list' => _privatemsg_rules_filters(),, which gives this error: Fatal error: Unsupported operand types in /Volumes/Bullfrog/om/includes/form.inc on line 2623.
When I removed the line return $options and placed a dpm() instead, I can see that the list of input filters is correctly generated; however, for a reason I do not understand, they are not prefilled as options correctly (I get the error with the return statement in place).
In any case, is "format" a property of the private message, or a property of the body of the privatemsg? (Because in theory, couldn't a privatemsg have multiple fields, some of which allow configurable formats and some that do not)?
Comments
Comment #1
BerdirMis-using this to test the tests...
Comment #3
ptmkenny CreditAttribution: ptmkenny commentedx.patch queued for re-testing.
Comment #5
ptmkenny CreditAttribution: ptmkenny commentedI applied the patch manually but I was unable to get it to work. As is, I had to change
'options list' => _privatemsg_rules_filters,
to'options list' => _privatemsg_rules_filters(),
, which gives this error: Fatal error: Unsupported operand types in /Volumes/Bullfrog/om/includes/form.inc on line 2623.When I removed the line return $options and placed a dpm() instead, I can see that the list of input filters is correctly generated; however, for a reason I do not understand, they are not prefilled as options correctly (I get the error with the return statement in place).
In any case, is "format" a property of the private message, or a property of the body of the privatemsg? (Because in theory, couldn't a privatemsg have multiple fields, some of which allow configurable formats and some that do not)?
Comment #6
chx CreditAttribution: chx commentedComment #7
ivnish CreditAttribution: ivnish commentedComment #8
andypost