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

quicksketch’s picture

I do not provide support on custom code in the issue queues. I suggest you look at the keys of your $links variable.

droweski’s picture

Sorry,
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.

quicksketch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.