function webform_civicrm_menu in Webform CiviCRM Integration 7.4
Same name and namespace in other branches
- 6.2 webform_civicrm.module \webform_civicrm_menu()
- 6 webform_civicrm.module \webform_civicrm_menu()
- 7.5 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()
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 = array();
$items['node/%webform_menu/civicrm'] = array(
'title' => 'CiviCRM',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'wf_crm_configure_form',
1,
),
'access callback' => 'wf_crm_admin_access',
'access arguments' => array(
1,
),
'file' => 'includes/wf_crm_admin_form.inc',
'weight' => 3,
'type' => MENU_LOCAL_TASK,
);
$items['webform-civicrm/js/%'] = array(
'page callback' => 'wf_crm_ajax',
'file' => 'includes/wf_crm_webform_ajax.inc',
'access callback' => TRUE,
'page arguments' => array(
2,
),
'type' => MENU_CALLBACK,
);
$items['webform-civicrm/help/%'] = array(
'page callback' => 'wf_crm_admin_help',
'file' => 'includes/wf_crm_admin_help.inc',
'access arguments' => array(
'access CiviCRM',
),
'page arguments' => array(
2,
),
'type' => MENU_CALLBACK,
);
return $items;
}