I created a menu item in a custom module that renders a particular node based on certain conditions of a view result. Accessing the page directly everything displayed as expected, but using the path as a callback in Quicktabs only rendered the word 'Array' where the content was supposed to be. I have spent several hours on this issue and finally just figured out what was causing this!!

In QuickCallbackContent.inc on line 72 is this line:

$output = array('#markup' => $output);

I understand that this is handling callbacks (like mine) that aren't in an array already. The issue is that $output is an empty array before this call (declared in line 60). Thus I was getting the word 'Array' since the array was always empty. Changing line 72 to this and it works wonderfully:

$output = array('#markup' => $response);

Hopefully this can be corrected soon and in the meantime hopefully this will save other people the hours it just took me to find this issue!

Thanks for the wonderful module!! Other than this issue it has been wonderful!!

Comments

katbailey’s picture

Status: Active » Fixed

Fix committed, thanks!

Status: Fixed » Closed (fixed)

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