You are here

function hubspot_menu in HubSpot 6.2

Same name and namespace in other branches
  1. 6 hubspot.module \hubspot_menu()
  2. 7.3 hubspot.module \hubspot_menu()
  3. 7 hubspot.module \hubspot_menu()
  4. 7.2 hubspot.module \hubspot_menu()

Implements hook_menu() to get the config page listed

File

./hubspot.module, line 15
Sends Webform results to HubSpot's Leads API by using Webform's provided hooks.

Code

function hubspot_menu() {
  $items = array();
  $items['admin/settings/hubspot'] = array(
    'title' => 'HubSpot integration settings',
    'description' => 'Set up HubSpot integration and leads insertion.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hubspot_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'hubspot.admin.inc',
  );
  return $items;
}