You are here

function google_adwords_path_menu in Google AdWords Conversion Tracking 7.2

Implements hook_menu().

File

modules/google_adwords_path/google_adwords_path.module, line 11
Module file for the Google Adwords Path Submodule.

Code

function google_adwords_path_menu() {
  $items['admin/config/system/google_adwords/path'] = array(
    'title' => 'Adwords by Path',
    'page callback' => 'google_adwords_path_admin_page',
    'access arguments' => array(
      'administer nodes',
    ),
    'file' => 'google_adwords_path.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 15,
  );
  $items['admin/config/system/google_adwords/path/add'] = array(
    'title' => 'Add conversion code',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'google_adwords_path_code_form',
    ),
    'access arguments' => array(
      'administer nodes',
    ),
    'file' => 'google_adwords_path.admin.inc',
    'type' => MENU_LOCAL_ACTION,
  );
  $items['admin/config/system/google_adwords/path/%/edit'] = array(
    'title' => 'Edit conversion code',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'google_adwords_path_code_form',
      5,
    ),
    'access arguments' => array(
      'administer nodes',
    ),
    'file' => 'google_adwords_path.admin.inc',
  );
  $items['admin/config/system/google_adwords/path/%/delete'] = array(
    'title' => 'Delete conversion code',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'google_adwords_path_code_delete_form',
      5,
    ),
    'access arguments' => array(
      'administer nodes',
    ),
    'file' => 'google_adwords_path.admin.inc',
  );
  return $items;
}