Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a situation where I want to hide the authorpane for a specific Author. Is it possible to add this functionality to authorpane?
Comments
Comment #1
MichelleHmm... Possibly... It's been a while since I've had my head in Author Pane and I can't remember if there's a point after it's called where it could short circuit and kick out without any of the preprocesses running. If there is, the code could be put there. Honestly, though, I think this makes much more sense to put this with the calling code. Don't call it at all for roles that can't see it.
I'm not completely opposed to the idea if someone wants to write the code but I don't think it's the best idea, either.
Comment #2
larsmw CreditAttribution: larsmw commentedI am not sure that it is easy to control from outside authorpane. In my example if the author of a node has uid=1 or uid=n then i want to hide the pane. Its not dependent on the viewing uid.
I have made an "ugly hack" to make it work, but maybe there could be a little admin ui to choose the settings.
Comment #3
ARUN AK CreditAttribution: ARUN AK commentedHi,
I think this is very nice feature, and it make more better if add it with Author Pane module. I can implement this.
Comment #4
Leeteq CreditAttribution: Leeteq commentedComment #5
larsmw CreditAttribution: larsmw as a volunteer and commented