0

How to display the entire $page array like shown below? I have devel module installed and have tried "dsm($page)" but that just shows the word "Array".

enter image description here

1
  • 2
    If dsm($page) just shows an array, then the variable named $page in that context is an empty array. Either that or you have a broken version of Devel/Krumo. Or, you haven't actually called dsm(), but drupal_set_message(), which is an altogether different function, and doesn't format arrays/objects automatically
    – Clive
    Nov 6, 2013 at 11:57

1 Answer 1

1

You can try dsm($page) in page.tpl.php of your theme to see the contents of $page array.

As mentioned by Clive, context really matters. If you will try to print $page array when it has no elements then it will display word Array.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.