You are here

function uc_webform_menu in Ubercart Webform Integration 7

Same name and namespace in other branches
  1. 6 uc_webform.module \uc_webform_menu()
  2. 7.3 uc_webform.module \uc_webform_menu()
  3. 7.2 uc_webform.module \uc_webform_menu()

Implements hook_menu

File

./uc_webform.module, line 20

Code

function uc_webform_menu() {
  $items = array();
  $items['uc_webform/autocomplete'] = array(
    'title' => 'Ubercart Webform autocomplete',
    'page callback' => 'uc_webform_autocomplete',
    'access callback' => 'user_access',
    'access arguments' => array(
      'edit own webform submissions',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/store/orders/%/webform'] = array(
    'title' => t('Webform Results'),
    'page callback' => 'uc_webform_application',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'view all orders',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}