Hey Everyone!
I have a quick question that I can't seem to figure out.
Currently, I'm working on customizing the user profile pages and have my user-profile.tpl.php set up.
I've run a print_r($account) to take a look at all the variables available and I have a question.
I basically want to take some of what is displayed and reuse it, while removing other portions of the profile.
My main question comes in the form of, how would I be able to print all values of an array, especially an array that lies within other arrays?
For example, here is what was output by the print_r
[facebook_status] => Array
(
[#required] =>
[#tree] =>
[#parents] => Array
(
)
[#description] =>
[status] => Array
(
[#required] =>
[#tree] =>
[#parents] => Array
(
)
[#description] =>
[#attributes] => Array
(
[class] => facebook_status profile
)
[#title] => ... and it goes on a bit more, but you get the idea.
I attempted to use
<?php print $account->content[facebook_status]; ?>
to return the values, but all that does is print out "Array," which is understandable, as it has multiple values.
So, just to be clear, I don't want to create another array. I just want to glean what the system already uses and reprint it. My plan is to customize the user profile page by picking and choosing what is already generated on the default user profile page.
Thank you.
1 year 19 weeks ago