You are here

function dialog_user_menu in Dialog 6

Same name and namespace in other branches
  1. 7 modules/dialog_user/dialog_user.module \dialog_user_menu()

Implementation of hook_menu().

File

modules/dialog_user/dialog_user.module, line 6

Code

function dialog_user_menu() {
  $items['user/login/%ctools_js'] = array(
    'title' => 'Log in',
    'page callback' => 'dialog_get_form',
    'page arguments' => array(
      'user_login',
      2,
    ),
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
    'file' => 'user.pages.inc',
    'file path' => drupal_get_path('module', 'user'),
  );
  $items['user/register/%ctools_js'] = array(
    'title' => 'Create new account',
    'page callback' => 'dialog_get_form',
    'page arguments' => array(
      'user_register',
      2,
    ),
    'access callback' => 'user_register_access',
    'type' => MENU_CALLBACK,
    'file' => 'user.pages.inc',
    'file path' => drupal_get_path('module', 'user'),
  );
  $items['user/password/%ctools_js'] = array(
    'title' => 'Request new password',
    'page callback' => 'dialog_get_form',
    'page arguments' => array(
      'user_pass',
      2,
    ),
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
    'file' => 'user.pages.inc',
    'file path' => drupal_get_path('module', 'user'),
  );
  return $items;
}