Removing [nid:n] in nodereference autocomplete

前端 未结 6 1342
难免孤独
难免孤独 2021-01-31 00:21

Using the autocomplete field for a cck nodereference always displays the node id as a cryptic bracketed extension:

Page Title [nid:23]

I unders

6条回答
  •  迷失自我
    2021-01-31 01:12

    I got Grayside's answer to work, but I had to use MENU alter, instead of the FORM alter he posted. No biggy!

    function custommodule_menu_alter(&$items) {
      $items['nodereference/autocomplete']['page callback'] = 'fp_tweaks_nodereference_autocomplete';
    }
    

提交回复
热议问题