Can I Hide the /messages/new/ tab?

Rosamunda - November 8, 2009 - 14:13
Project:Privatemsg
Version:6.x-1.0-rc4
Component:User interface
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi there!
Is there a way to prevent users to see and use the /messages/new/ tab?
I want them to write messages only using the links inside each profile.

Can I do that?

#1

Berdir - November 8, 2009 - 17:12

The issue is that those links use the same path. You can probably write a custom access callback and pass the recipients string to it and then only return TRUE when that string is not empty.

#2

Rosamunda - November 8, 2009 - 19:20

Thanks!

#3

Berdir - November 9, 2009 - 15:59
Status:active» fixed

Setting this to fixed. Feel free to re-open this if you have more questions.

#4

System Message - November 23, 2009 - 16:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.