I'm trying to figure out where $node->links comes from, or how it's administered, or anything about it, etc. I found the page on theming links but I'm looking for something more basic. (It's hard to search for this topic, "links" you get a lot of results.)

thanks

Comments

dldege’s picture

the node links are generated by core when preparing a node for viewing or teaser. As far as I know they can only be modified in code (module or theme).

Go to http://api.drupal.org and look at the documentation for hook_link.

dLd

Rotwang’s picture

OK so there's no admin side of it? (well, unless a module provides for one, I mean)?

And thanks for your quick answer.

It all seems really arbitrary to have a separate variable for this. Couldn't this have just been be another block seciton?

As If’s picture

I think this is what you mean, from node.module around line 675 (version 5.1):

$node->links = module_invoke_all('link', 'node', $node, !$page);

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com