You are here

function invite_menu_alter in Invite 7.2

Same name and namespace in other branches
  1. 6.2 invite.module \invite_menu_alter()
  2. 7.4 invite.module \invite_menu_alter()

Implements hook_menu_alter().

Override the user/register menu access handler with a custom implementation.

File

./invite.module, line 261
Allows your users to send and track invitations to join your site.

Code

function invite_menu_alter(&$items) {
  if (invite_user_registration_by_invite_only()) {
    $items['user/register']['access callback'] = 'invite_user_register_access';
  }
}