You are here

function flickr_user_page in Flickr 7

Displays the links to the user's photos, sets and tags.

1 string reference to 'flickr_user_page'
flickr_menu in ./flickr.module
Implements hook_menu().

File

./flickr.module, line 176
The Flickr module.

Code

function flickr_user_page($user) {
  drupal_set_title(flickr_photos_page_title($user));
  $links['items'][] = l(t("@name's photos", array(
    '@name' => $user->name,
  )), 'flickr/' . $user->uid);
  if (module_exists('flickr_sets')) {
    $links['items'][] = l(t("@name's photo sets", array(
      '@name' => $user->name,
    )), 'flickr/' . $user->uid . '/sets');
  }
  if (module_exists('flickr_tags')) {
    $links['items'][] = l(t("@name's tags", array(
      '@name' => $user->name,
    )), 'flickr/' . $user->uid . '/tags');
  }
  return theme('item_list', $links) . ' ';
}