You are here

function dialog_user_menu in Dialog 7

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

Implement hook_menu().

File

modules/dialog_user/dialog_user.module, line 6

Code

function dialog_user_menu() {
  $items['user/login/%dialog_js'] = array(
    'page callback' => 'dialog_user_ajax_callback',
    'page arguments' => array(
      1,
      2,
    ),
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
  );
  $items['user/register/%dialog_js'] = array(
    'page callback' => 'dialog_user_ajax_callback',
    'page arguments' => array(
      1,
      2,
    ),
    'access callback' => 'user_register_access',
    'type' => MENU_CALLBACK,
  );
  $items['user/password/%dialog_js'] = array(
    'page callback' => 'dialog_user_ajax_callback',
    'page arguments' => array(
      1,
      2,
    ),
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
  );
  return $items;
}