You are here

function signup_user_schedule in Signup 5

Same name and namespace in other branches
  1. 5.2 includes/views.none.inc \signup_user_schedule()
  2. 6.2 includes/no_views.inc \signup_user_schedule()

Prints a schedule of the given user's signups.

1 string reference to 'signup_user_schedule'
signup_menu in ./signup.module
Implementation of hook_menu().

File

./signup.module, line 1125

Code

function signup_user_schedule($uid) {
  $output = '';
  $user = user_load(array(
    'uid' => $uid,
  ));
  if (!$user) {
    drupal_not_found();
    return;
  }
  drupal_set_title(t('Signups for @user', array(
    '@user' => $user->name,
  )));
  $titles = signup_list_user_signups($user->uid);
  foreach ($titles as $nid => $title) {
    $node = node_load(array(
      'nid' => $nid,
    ));
    $output .= theme('signup_user_schedule', $node);
  }
  return $output;
}