seochecklist.module in SEO Checklist 7.3
Same filename and directory in other branches
SEO Checklist module allows users to track important SEO techniques on the website.
File
seochecklist.moduleView source
<?php
// $Id$
/**
* @file
* SEO Checklist module allows users to track important SEO techniques on the website.
*/
/**
* Implementation of hook_help().
*/
function seochecklist_help($path, $arg) {
if ($path == 'admin/config/search/seochecklist') {
//image not found, commenting the banner
return l('<img width=700 height=100 src="http://www.volacci.com/linkcodes/seo-checklist-banner-7.png">', 'http://www.volacci.com/lp/drupal-seo-checklist-7', array(
'html' => TRUE,
)) . '<p>' . t('Check off each SEO-related task as you complete it. Do not forget to click the <em>Save</em> button!') . '</p>';
}
}
/**
* Implementation of hook_permission().
*/
function seochecklist_permission() {
return array(
'access seochecklist content' => array(
'title' => t('Access SEOchecklist Content'),
'description' => t('Access to SEO Checklist.'),
),
);
}
/**
* Implementation of hook_menu().
*/
function seochecklist_menu() {
$items['admin/config/search/seochecklist'] = array(
'title' => 'SEO Checklist',
'description' => 'Keep track of your Drupal Search Engine Optimization tasks.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'seochecklist_admin_settings',
),
'access arguments' => array(
'access seochecklist content',
),
'file' => 'seochecklist.admin.inc',
);
return $items;
}
/**
* Implementation of hook_page_alter().
*/
function seochecklist_page_alter(&$page) {
if (variable_get('seo_checklist_link', 0)) {
$page['page_bottom']['devel'] = array(
'#type' => 'markup',
'#markup' => '<div align="center"><a href="http://www.volacci.com/" target="_blank">Drupal SEO</a></div>',
);
}
}
//hide references to D6 book
/*
function seochecklist_get_book_references($tid) {
$references = array(
1 => 59,
39 => 59,
2 => 68,
6 => 83,
5 => 72,
7 => 20,
9 => 23,
10 => 22,
11 => 22,
12 => 23,
13 => 26,
15 => 96,
16 => 182,
17 => 201,
18 => 18,
19 => 148,
21 => 109,
46 => 125,
24 => 118,
40 => 205,
39 => 205,
);
return isset($references[$tid]) ? $references[$tid] : NULL;
}
*/
Functions
Name![]() |
Description |
---|---|
seochecklist_help | Implementation of hook_help(). |
seochecklist_menu | Implementation of hook_menu(). |
seochecklist_page_alter | Implementation of hook_page_alter(). |
seochecklist_permission | Implementation of hook_permission(). |