This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

delete comments but not administer

Is there currently a way to set up a role (moderator) that can delete comments and node, but doesn't have access to change the settings for comments and nodes? All I can find is "administer", which allows both. I don't want my moderators to be able to change settings, but I *do* want them to be able to delete comments and nodes.

If I had to hack this in, how would I do that?

Event validation routine does not work properly on 4.5

Validation routine does not work in 4.5.0 for detail field and for additional fields.
Also, error management is not aligned to 4.5.0, i.e. it does not use form_set_error routine.

I opened an issue and created a patch.
Is anyone interested in fixing this problem ??

Matteo

Url Aliasing and taxonomy term creation in one...?

Hi.
Is there a way to have a term for a taxonomy vocabulary and a url alias created at the same time?

So I could add 'projects' to the vocab 'menu' and have it create the url alias 'menu/projects' ?
It would be really usefull, I'm not afraid of diving into some code, and it has to be postgres based...

Any help would be appreciated.

Thanks

How does drupal_set_message work? Is this a bug or do I not understand?

I'm working on a module (which I have briefly described here), and want to redirect the output while displaying a message.

In short, I use the nodeapi hook and "validate" switch to check whether the node is available for editing or not (unavailable means it has been logically locked by another user). If the node is not available, then I want to display the node in "view" mode, not in "edit" mode, with a warning message.

file download in e-commerce module doesn't ever provide file

I've installed the e-commerce module 4.5 in drupal 4.5 (not 4.5.1) and file download is not aparently working. I host a website for artists and musicians, and mp3 downloads are crucial. I've offered each track at a low price, ala iTunes, and they are supposed to be a simple, paid, direct download; but it's non-functional. I tried it out a purchase using my girlfriends paypal account and found that nowhere during the process was there a link to the file that was purchased.

how to check the permissions of the writer

I want to put a little star next to usernames of people that belong to a certain role. I was trying to use user_access() to check, but that gets me accessrules for the logged in user, not for the user who wrote the node|comment.

Any suggestions would be greatly appreciated! BY the way, I'm making changes in common.inc to do this, Should I look somewhere else instead? First time module hacker...

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions