You are here

function user_badges_menu_alter in User Badges 7.3

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 321
@brief User Badges module file

Code

function user_badges_menu_alter(&$callbacks) {
  $callbacks['user/%user_category/edit/badges']['page callback'] = 'user_badges_page';
  $callbacks['user/%user_category/edit/badges']['module'] = 'user_badges';
  $callbacks['user/%user_category/edit/badges']['page arguments'] = array(
    1,
  );
  $callbacks['user/%user_category/edit/badges']['file'] = 'user_badges.module';
}