You are here

seotools.module in Drupal SEO Tools 7

Same filename and directory in other branches
  1. 6 seotools.module

Code for the SEO Tools feature.

File

seotools.module
View source
<?php

/**
 * @file
 * Code for the SEO Tools feature.
 */

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

/**
 * Implements hook_menu().
 */
function seotools_menu() {
  $items['admin/config/search/seotools'] = array(
    'title' => 'SEO Tools',
    'description' => 'Configuration settings for SEO Tools.',
    'page callback' => 'seotools_admin_settings',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer seotools',
    ),
    'file' => 'seotools.admin.inc',
    'weight' => 2,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/search/seotools/setup'] = array(
    'title' => 'Setup wizard',
    'description' => 'Setup wizard to help you get started quickly.',
    'page callback' => 'seotools_admin_setup',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer seotools',
    ),
    'file' => 'seotools.setup.inc',
    'weight' => 2,
    'type' => MENU_LOCAL_ACTION,
  );
  $items['seotools/util'] = array(
    'title' => 'Social media util',
    'page callback' => 'seotools_util',
    'access arguments' => array(
      'administer-site-configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}
function seotools_util() {
  return 'OK';
}

Functions