Hello, how can i make a content to display a function?

I added into template_preprocess_advprofile_userinfo this

 if (module_exists('activitystream')) {
  $variables['activitystreams_raw'] = activitystream_get_activity($account); 
  $variables['activitystreams'] =  '<div class="username">' .$variables['activitystreams_raw'] . '</div>';

and a "$print activitystreams;" into advanced_profile_userinfo.tpl and activities display well, but i wanna to display in other block.

I cant use views or custom content to display activities.
Is there any way to create something similar userinfo into advanced_profile.module ??

Comments

michelle’s picture

Status: Active » Fixed

You need to create a panels custom content type. You can look at the user info for reference but explaining how to do this is really out of scope for this issue queue.

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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