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

quicksketch’s picture

Status: Active » Fixed

Thanks, 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!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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