I would like to all the href of the edit tab link on several nodes.
IOW: instead of
example.com/node/%/edit
I would like to substitute my dynamically created link
example.com/products/$myproductid/edit
My first stab at this (just to see if I understood the wild cards):
function jch_utilities_menu_alter(&$items) {
$items['node/%node/edit']['title'] = '1234';
}
...and this fires, BUT I don't understand how to pass the URL I want dynamically to it.
What I want to do is pass a variable from the node (a field variable) to that link.
I see that there is a page callback member of the array but that seems to call the node_edit page... which is over my head. I can't find a simple clear example of how to do this without a -lot- of study.
Is there no way to simply -force- a link href as one could do with jQuery?
TIA.