You are here

seo.module in Drupal SEO Essentials 7

File

seo.module
View source
<?php

/**
 * @file
 * Code for the SEO Tools feature.
 */
include_once 'seo.features.inc';

/**
 * Implements hook_permission().
 */
function seo_permission() {
  return array(
    'administer seo' => array(
      'title' => t('Administer SEO Essentials'),
      'description' => t('Can configure SEO settings.'),
    ),
  );
}

/**
 * Implements hook_menu().
 */
function seo_menu() {

  // Module settings.
  $items['admin/config/search/seo'] = array(
    'title' => 'SEO Essentials',
    'description' => 'Configuration settings for SEO Essentials.',
    'page callback' => 'seo_admin_settings',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer seo',
    ),
    'file' => 'seo.admin.inc',
    'weight' => 2,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/search/seo/setup'] = array(
    'title' => 'Setup wizard',
    'description' => 'Setup wizard to help you get started quickly.',
    'page callback' => 'seo_admin_setup',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer seo',
    ),
    'file' => 'seo.setup.inc',
    'weight' => 2,
    'type' => MENU_LOCAL_ACTION,
  );
  $items['seo/util'] = array(
    'title' => t('SEO util'),
    'page callback' => 'seo_util',
    'access arguments' => array(
      'administer-site-configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}
function seo_util() {
  return 'OK';
}

Functions

Namesort descending Description
seo_menu Implements hook_menu().
seo_permission Implements hook_permission().
seo_util