You are here

function hubspot_menu in HubSpot 7

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.2 hubspot.module \hubspot_menu()

Implements hook_menu() to get the config page listed

File

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

Code

function hubspot_menu() {
  $items = array();
  $items['admin/config/content/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;
}