You are here

function user_badges_page in User Badges 7.3

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.2 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).

2 string references to 'user_badges_page'
user_badges_menu in ./user_badges.module
Implements hook_menu().
user_badges_menu_alter in ./user_badges.module
Implementation of hook_menu_alter(). We will use this function to create the callbacks for the user_badges user edit page.

File

./user_badges.module, line 570
@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);
}