You are here

function hubspot_webform_menu in HubSpot 7.2

Same name and namespace in other branches
  1. 7.3 hubspot_webform/hubspot_webform.module \hubspot_webform_menu()

Implements hook_menu().

File

hubspot_webform/hubspot_webform.module, line 10
Sends Webform results to HubSpot's Forms API.

Code

function hubspot_webform_menu() {

  // Node HubSpot forms.
  $items['node/%webform_menu/webform/hubspot'] = array(
    'title' => 'HubSpot',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hubspot_webform_form_settings',
      1,
    ),
    'access callback' => 'node_access',
    'access arguments' => array(
      'update',
      1,
    ),
    'weight' => 10,
    'type' => MENU_LOCAL_TASK,
    'file' => 'hubspot_webform.admin.inc',
  );
  return $items;
}