Exclude certain node types
kirkcaraway - February 8, 2009 - 15:05
| Project: | Hidden |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
I need a way to exclude certain node types from using Hidden. For instance, on my sites, Page nodes are created only by the myself or an editor, and I don't want users to be able to hide or report those nodes. Is there a way to do this, or would you have to add this to your features? Thanks.

#1
Agree absolutely. So I've written attached. It's working and (when I corrected the content type in the test) it's not breaking tests. I'll add it to the module when it has it's own test/s.
#2
Review by humans, but also by it's own test ;)
#3
Thanks. I'll see if I can give it a try this week.
#4
Thanks very much for adding this feature. But I think I'm missing something. I don't see where you configure for excluding node types. Can someone point me in the right direction?
#5
It's not in the module yet.. as it's still not got a test. The patch above should work mind, give it a go. If you've never patched try http://drupal.org/patch/apply or collar me in irc.
I'll try and give the module some love soon, and get a (final) 6.x release.
#6
We installed this patch, and it seems to work, but we are now having issues with the module not sending out emails when someone reports or hides a node. Has anyone had the same issue?