I'm not sure if anyone else would like this feature, but I figured I would post it and see. I have a site where I want to have a user able to update taxonomy, but they won't understand what taxonomy_hide is and why it is happening. I don't really want them to even see anything confusing. The permissions are joined though.

I can provide a patch (as I have already made the necessary changes in my own copy) if needed.

Cheers,
Stephanie

CommentFileSizeAuthor
#3 320996.patch1.07 KBfuturesoon

Comments

brmassa’s picture

Status: Active » Needs work

Stephanie,

i like this idea and i would like to see your patch, yes!

regards,

massa

ssherriff’s picture

Sorry, my current CVS client doesn't do patches for the free version, and I only use CVS for a handful of Drupal projects, so the best I can do for now is put in the code.

This is the hook_perm function, I just put it above the hook_menu function:

/**
 * Implementation of hook_perm().
 */
function taxonomy_hide_perm() {
  return array('administer taxonomy hide');
}

Then in the hook menu function I changed this line:

'access arguments'  => array('administer taxonomy'),

to this:

'access arguments'  => array('administer taxonomy hide'),

That's it!

futuresoon’s picture

StatusFileSize
new1.07 KB

here's a patch for this if anybody wants it