By roper. on
Hello,
This is in regards to my forum, not necessarily all nodes. Currently, for the comments within a forum topic, admins can see 'delete' and 'edit' links in the links div. Also, the user that posted the comment can see the 'edit' link. That's perfect. The problem though, is that I would like the 'edit' link to appear in the links div of the original forum post if the logged in user is the topic starter, and I would like both the 'edit' and 'delete' options to display in the original post for admins.
So, basically, I want the same link creation on the forum topic that is happening for the comments. How would I implement this? Thank you.
Comments
Anyone..?
I know one of you geniuses can explain this for me real quick. :-)
Create a module (eg
Create a module (eg node_edit_links.module), with something like this:
You may want to remove the check for $teaser. I put it in there because on a full node view, you already have the edit tab.
New little module that does
New little module that does exactly this: http://drupal.org/project/admin_links