You are here

function multiple_registration_menu_alter in Multiple Registration 7

Implements hook_menu_alter().

Parameters

$items:

File

./multiple_registration.module, line 75
Add ability to create several registration pages.

Code

function multiple_registration_menu_alter(&$items) {
  $default_registration_form_status = variable_get('disable_default_registration_form', FALSE);
  if ($default_registration_form_status !== FALSE && $default_registration_form_status !== 0) {

    // Disable the user/register page.
    $items['user/register']['access callback'] = FALSE;
  }
}