# HG changeset patch # User Franck Deroche # Date 1232978397 -3600 # Node ID 4fc2f22efcdf8d49986c74ec99160943578abe69 # Parent b4c1e3d5d5ce60203ebbecd974684e085b7e4e79 Better name for the attribute to prevent collision, add to #after_build #link was probably overly too broad, so I've renamed the attribute to include the module name. The code previously also fully took over #after_build, which killed other modules registrations. Now the module's a good citizen and only add its handler leaving the others as is. diff -r b4c1e3d5d5ce -r 4fc2f22efcdf noderef_view.module --- a/noderef_view.module Mon Jan 26 12:29:17 2009 +0100 +++ b/noderef_view.module Mon Jan 26 14:59:57 2009 +0100 @@ -112,8 +112,8 @@ if (is_array($field) && $field['type'] == 'nodereference') { $link = _noderef_view_get_link($field); if (!empty($link)) { - $form[$key]['#links'] = $link; - $form[$key]['#after_build'] = array('noderef_view_add_link'); + $form[$key]['#noderef_view_link'] = $link; + $form[$key]['#after_build'][] = 'noderef_view_add_link'; return TRUE; } }