function webform_civicrm_menu in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 6.2 webform_civicrm.module \webform_civicrm_menu()
- 6 webform_civicrm.module \webform_civicrm_menu()
- 7 webform_civicrm.module \webform_civicrm_menu()
- 7.2 webform_civicrm.module \webform_civicrm_menu()
- 7.3 webform_civicrm.module \webform_civicrm_menu()
- 7.4 webform_civicrm.module \webform_civicrm_menu()
Implements hook_menu().
Return value
array
File
- ./
webform_civicrm.module, line 25 - Webform CiviCRM Integration Module: Links webform submissions to contacts in a CiviCRM database. @author Coleman Watts
Code
function webform_civicrm_menu() {
$items = [];
$items['node/%webform_menu/civicrm'] = [
'title' => 'CiviCRM',
'page callback' => 'drupal_get_form',
'page arguments' => [
'wf_crm_configure_form',
1,
],
'access callback' => 'wf_crm_admin_access',
'access arguments' => [
1,
],
'file' => 'includes/wf_crm_admin_form.inc',
'weight' => 3,
'type' => MENU_LOCAL_TASK,
];
$items['webform-civicrm/js/%'] = [
'page callback' => 'wf_crm_ajax',
'file' => 'includes/wf_crm_webform_ajax.inc',
'access callback' => TRUE,
'page arguments' => [
2,
],
'type' => MENU_CALLBACK,
];
$items['webform-civicrm/help/%'] = [
'page callback' => 'wf_crm_admin_help',
'file' => 'includes/wf_crm_admin_help.inc',
'access arguments' => [
'access CiviCRM',
],
'page arguments' => [
2,
],
'type' => MENU_CALLBACK,
];
return $items;
}