You are here

function dialog_example_menu in Dialog 6

Same name and namespace in other branches
  1. 7 example/dialog_example.module \dialog_example_menu()

Implementation of hook_menu().

File

example/dialog_example.module, line 6

Code

function dialog_example_menu() {
  $items['dialog/example'] = array(
    'title' => 'Dialog example',
    'page callback' => 'dialog_example_page',
    'access arguments' => array(
      'access content',
    ),
  );
  $items['dialog/%ctools_js/example'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'dialog_example_ajax_callback',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'access content',
    ),
  );
  $items['user/login/%ctools_js'] = array(
    'page callback' => 'dialog_login_callback',
    'page arguments' => array(
      1,
      2,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['user/register/%ctools_js'] = array(
    'page callback' => 'dialog_login_callback',
    'page arguments' => array(
      1,
      2,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}