You are here

function user_badges_page in User Badges 7.2

Same name and namespace in other branches
  1. 5 user_badges.module \user_badges_page()
  2. 6.2 user_badges.module \user_badges_page()
  3. 6 user_badges.module \user_badges_page()
  4. 7.4 user_badges.module \user_badges_page()
  5. 7 user_badges.module \user_badges_page()
  6. 7.3 user_badges.module \user_badges_page()

Define the page on user/uid/badges/edit and user/%user/edit/badges.

Note: menu system passes user/% as integer, but user/%user as an object (with badges).

1 string reference to 'user_badges_page'
user_badges_menu in ./user_badges.module
Implements hook_menu().

File

./user_badges.module, line 569
@brief User Badges module file

Code

function user_badges_page($account) {
  drupal_set_title(t('Edit badges for %user_name', array(
    '%user_name' => $account->name,
  )), PASS_THROUGH);
  return drupal_get_form('user_badges_change_form', $account);
}