Closed (fixed)
Project:
Link
Version:
5.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2008 at 20:20 UTC
Updated:
13 Jul 2008 at 22:02 UTC
A dsm($node) shows these elements that appear to come from this module:
[field_link] => Array
(
[0] => Array
(
[url] => www.example.com
[title] =>
[attributes] => N;
[view] => <a href="www.example.com">Website</a>
)
)
[0] => Array
(
[url] => www.example.com
[title] =>
[attributes] =>
)
What's the [0] entry? It doesn't look like it belongs there to me. Surely the $node object shouldn't have elements without proper names.
Comments
Comment #1
quicksketchThanks, I'd seen this several times before but I couldn't figure out where it originated. Guess today I was lucky though, since I found it immediately. Just remove the "return" line from the hook_field() load op, which isn't necessary since the $items come in by reference.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/link/link.m...
I'm putting out a 2.3 version today, this'll be included. Thanks!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.