You are here

function webform_ajax_menu in Webform Ajax 7

Same name and namespace in other branches
  1. 6 webform_ajax.module \webform_ajax_menu()
  2. 7.2 webform_ajax.module \webform_ajax_menu()

Implements hook_menu().

File

./webform_ajax.module, line 16
Webform AJAX module file.

Code

function webform_ajax_menu() {
  $items = array();
  $items['webform_ajax/return_webform/%node/%'] = array(
    'title' => 'Webform AJAX callback',
    'page callback' => 'webform_ajax_confirm_return_ajax_callback',
    'page arguments' => array(
      2,
      3,
    ),
    'delivery callback' => 'ajax_deliver',
    'access callback' => 'node_access',
    'access arguments' => array(
      'view',
      2,
    ),
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
  );
  return $items;
}