You are here

function seotools_menu in Drupal SEO Tools 6

Same name and namespace in other branches
  1. 7 seotools.module \seotools_menu()

Implementation of hook_menu()

File

./seotools.module, line 15

Code

function seotools_menu() {
  $items = array();
  $items['admin/settings/seotools'] = array(
    'title' => 'SEO Tools',
    'description' => 'Analyze and optimize node content.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'seotools_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'admin seo tools',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'seotools.admin.inc',
  );
  $items['admin/content/seotools'] = array(
    'title' => 'SEO Tools',
    'description' => 'View the dashboard for SEO Tools.',
    'page callback' => 'seotools_dashboard_page',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access seo tools',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'seotools.report.inc',
  );
  $w = 0;
  $items['admin/content/seotools/dashboard'] = array(
    'title' => 'Dashboard',
    'description' => 'View the dashboard for SEO Tools.',
    'page callback' => 'seotools_dashboard_page',
    'page argument' => array(
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access seo tools',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => $w++,
    'file' => 'seotools.report.inc',
  );
  $items['admin/content/seotools/keywords'] = array(
    'title' => 'Keywords',
    'description' => 'View the dashboard for SEO Tools.',
    'page callback' => 'seotools_dashboard_page',
    'page arguments' => array(
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access seo tools',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => $w++,
    'file' => 'seotools.report.inc',
  );
  $items['admin/content/seotools/entrances'] = array(
    'title' => 'Entrances',
    'description' => 'View the dashboard for SEO Tools.',
    'page callback' => 'seotools_dashboard_page',
    'page arguments' => array(
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access seo tools',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => $w++,
    'file' => 'seotools.report.inc',
  );
  $items['admin/content/seotools/sources'] = array(
    'title' => 'Sources',
    'description' => 'View the dashboard for SEO Tools.',
    'page callback' => 'seotools_dashboard_page',
    'page arguments' => array(
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access seo tools',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => $w++,
    'file' => 'seotools.report.inc',
  );
  $items['admin/content/seotools/referrers'] = array(
    'title' => 'Referrers',
    'description' => 'View the dashboard for SEO Tools.',
    'page callback' => 'seotools_dashboard_page',
    'page arguments' => array(
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access seo tools',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => $w++,
    'file' => 'seotools.report.inc',
  );
  $items['admin/content/seotools/pageviews'] = array(
    'title' => 'Views',
    'description' => 'View the dashboard for SEO Tools.',
    'page callback' => 'seotools_dashboard_page',
    'page arguments' => array(
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access seo tools',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => $w++,
    'file' => 'seotools.report.inc',
  );
  $items['seotools/util'] = array(
    'title' => 'SEO Tools Util',
    'description' => 'Analyze and optimize node content.',
    'page callback' => 'seotools_util',
    'access callback' => 'user_access',
    'access arguments' => array(
      'admin seo tools',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}