I had to change the following line to get the title I wanted from a view that I was referencing for a cck field:

- $has_title = array_reduce($view->field, create_function('$a, $b', 'return ($b["field"] == "title") || $a;'), false);
+ $has_title = array_reduce($view->field, create_function('$a, $b', 'return (($b["field"] == "title") || ($b["label"] == "title")) || $a;'), false);

This way, you don't necessarily have to have a field named title, but you can select a field and call it "title"

Comments

karens’s picture

Status: Active » Closed (won't fix)

A very old feature request for D5, won't do anything with this now.