You are here

function hubspot_menu in HubSpot 7.2

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

Implements hook_menu().

File

./hubspot.module, line 13
Sends Webform results to HubSpot's Forms API.

Code

function hubspot_menu() {
  $items['admin/config/services/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',
  );
  $items['hubspot/oauth'] = array(
    'title' => 'HubSpot OAuth redirect',
    'description' => 'Collects OAuth tokens.',
    'page callback' => 'hubspot_oauth_connect',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'hubspot.admin.inc',
  );
  return $items;
}