You are here

function ga_push_browser_menu in GA Push 7

Implements hook_menu().

File

modules/browser/ga_push_browser.module, line 122
Drupal Module: GA Push (browser).

Code

function ga_push_browser_menu() {
  $items['admin/config/system/ga-push/browser/add'] = array(
    'title' => 'Ga push: Add browser event',
    'page callback' => 'ga_push_browser_event_add',
    'access arguments' => array(
      'admin ga push',
    ),
    'description' => 'Global configuration of ga push.',
    'file' => 'ga_push_browser.forms.inc',
    'type' => MENU_LOCAL_ACTION,
    'weight' => 3,
  );
  $items['admin/config/system/ga-push/browser/%ga_push_browser_event/edit'] = array(
    'title' => 'Ga push: browser',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ga_push_browser_event_form',
      5,
    ),
    'access arguments' => array(
      'admin ga push',
    ),
    'description' => 'Global configuration of ga push.',
    'file' => 'ga_push_browser.forms.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/system/ga-push/browser/%ga_push_browser_event/delete'] = array(
    'title' => 'Delete',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ga_push_browser_event_confirm_delete_form',
      5,
    ),
    'access arguments' => array(
      'admin ga push',
    ),
    'file' => 'ga_push_browser.forms.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}