You are here

function webform_civicrm_menu in Webform CiviCRM Integration 6

Same name and namespace in other branches
  1. 6.2 webform_civicrm.module \webform_civicrm_menu()
  2. 7.5 webform_civicrm.module \webform_civicrm_menu()
  3. 7 webform_civicrm.module \webform_civicrm_menu()
  4. 7.2 webform_civicrm.module \webform_civicrm_menu()
  5. 7.3 webform_civicrm.module \webform_civicrm_menu()
  6. 7.4 webform_civicrm.module \webform_civicrm_menu()

Implementation of hook_menu().

File

./webform_civicrm.module, line 14
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(
      'webform_civicrm_configure_form',
      1,
    ),
    'access callback' => 'node_access',
    'access arguments' => array(
      'update',
      1,
    ),
    'file' => 'webform_civicrm_forms.inc',
    'weight' => 3,
    'type' => MENU_LOCAL_TASK,
  );
  $items['webform-civicrm/js/%/%'] = array(
    'page callback' => 'webform_civicrm_js_options',
    'file' => 'webform_civicrm_utils.inc',
    'access callback' => 'node_access',
    'access arguments' => array(
      'update',
      2,
    ),
    'page arguments' => array(
      3,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}