I add settings to control the displays of input format selection and preview button in the patch.
The form to compose new message hides input format selection and preview button by default for better usability for common users.

Comments

berdir’s picture

Version: 6.x-1.2 »
Status: Active » Needs review

Interesting, thanks for the patch.

However, new features are only added to the 2.x branch, can you re-roll?

Also, at least the format setting could also be a permission or somehow else role-dependant. Even though "normal" users should not see it, the site admin might for some reason want to send messages that need another format.

Always set issues with patches to needs review, then they are tested (this is going to fail because it's against 1.x)

Status: Needs review » Needs work

The last submitted patch, privatemsg.patch, failed testing.

shenzhuxi’s picture

Status: Needs work » Needs review
StatusFileSize
new3.75 KB

Patch to 2.x
Role based permission to select input format

Status: Needs review » Needs work

The last submitted patch, privatemsg.patch, failed testing.

berdir’s picture

You probably need to make the patch against CVS, inside the privatemsg directory, or it is not going to apply. http://drupal.org/node/3279/cvs-instructions/HEAD has copy & paste commands to do the CVS checkout and create a patch.

- Not sure about the permission name, that should imho somehow contain the information that this only affects privatemsg (and also avoid conflicts with other modules). "use input format for private messages"?

- Thinking about an update function to give the permission to all roles that have the write privatemsg permission. Reason is, just adding the pemission would change the behaviour when users upgrade to the latest release. We have done this when introducing the delete permission, see http://blog.worldempire.ch/de/api/function/privatemsg_update_6005/1. On the other side, this is a -dev release and things *are* changing while the delete permission was added late in the development cycle of the 1.x branch.

- Just as a reminder, when porting this to D7: Drupal has changed "input format" to "text format", we probably need to rename the permission there. D7 has a separate table for permissions, so that should be easier than the REPLACE() hack we need in D6.

BenK’s picture

If we have a patch that passes automated testing, I can help test it manually....

--Ben

BenK’s picture

Version: » 7.x-1.x-dev

Bumping this to the top of priority list so that we can deal with this at the same time as the CSS fixes to the message view page. Also changing version to 7.x.

--Ben

berdir’s picture

Status: Needs work » Needs review
Issue tags: -format, -preview, -input
StatusFileSize
new4.43 KB

Ok, here is your patch :)

berdir’s picture

StatusFileSize
new6.17 KB

This should pass the tests.

Status: Needs review » Needs work

The last submitted patch, format_permission_preview_setting2.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new6.76 KB

Next try.

Status: Needs review » Needs work

The last submitted patch, format_permission_preview_setting3.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new6.75 KB

Maybe this one?

BenK’s picture

Status: Needs review » Reviewed & tested by the community

This patch is working great. Tested it a bunch of ways and no problems at all. All functionality is working as advertised and the text strings look good. And it definitely helps streamline and simplify the page. This is RTBC.

Thanks!

--Ben

berdir’s picture

Version: 7.x-1.x-dev »
Status: Reviewed & tested by the community » Patch (to be ported)

Committed, will do a backport of this later on.

berdir’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new4.63 KB

And here is a backport for this one...

berdir’s picture

StatusFileSize
new4.63 KB

Same patch without d6 suffix.

Status: Needs review » Needs work

The last submitted patch, format_permission_preview_setting_6.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new5.41 KB

New patch, should fix the test fails.

berdir’s picture

Commited.

berdir’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.