Closed (fixed)
Project:
Node Reference URL Widget
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2010 at 18:43 UTC
Updated:
17 Sep 2010 at 19:10 UTC
Trying to use standard link_alter code with nodereference_url supplied links, but not working.
Example test code:
function ela_link_alter(&$links, $node, $comment = NULL) {
foreach ($links as $module => $link) {
if (strstr($module, 'nodereference_url')) {
unset($links[$module]);;
}
}
}
This will work with "generic" modules but not with NR_url. I presume I must use an if-statement incorporating widget or other expanded keys, but have not been successful in doing this.
Any help is appreciated.
Comments
Comment #1
quicksketchI do not provide support on custom code in the issue queues. I suggest you look at the keys of your $links variable.
Comment #2
droweski commentedSorry,
Mis-read your module readme file mentioning support should go to issues vs forum... but obviously only module support.
Thanks anyway for your suggestion as it did the trick. Your help is most appreciated.
Comment #3
quicksketch