You are here

function activity_feed in Activity 5

Same name and namespace in other branches
  1. 5.4 activity.module \activity_feed()
  2. 5.2 activity.module \activity_feed()
  3. 5.3 activity.module \activity_feed()
  4. 6 activity.module \activity_feed()

menu callback to return a feed of a signed in user's activity page

1 string reference to 'activity_feed'
activity_menu in ./activity.module
Implementation of hook_menu().

File

./activity.module, line 329
Activity module: Allow users to see their friends' activity on the site.

Code

function activity_feed($user_name) {
  $account = user_load(array(
    'name' => $user_name,
  ));
  $buddy_activity = activity_buddy_activity($account->uid);
  drupal_set_header('Content-Type: text/xml; charset=utf-8');
  print theme('activity_feed', $buddy_activity);
  exit;
}