[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/seo_checklist/ -> seochecklist.module (source)

   1  <?php
   2  // $Id: seochecklist.module,v 1.14 2009/12/04 05:34:08 davereid Exp $
   3  
   4  /**
   5   * @file
   6   * SEO Checklist module allows users to track important SEO techniques on the website.
   7   */
   8  
   9  /**
  10   * Implementation of hook_help().
  11   */
  12  function seochecklist_help($path, $arg) {
  13    if ($path == 'admin/settings/seochecklist') {
  14      return '<p>' . t('Check off each SEO-related task as you complete it. Do not forget to click the <em>Save</em> button!') . '</p>';
  15    }
  16  }
  17  
  18  /**
  19   * Implementation of hook_perm().
  20   */
  21  function seochecklist_perm() {
  22    return array('access seochecklist content');
  23  }
  24  
  25  /**
  26   * Implementation of hook_menu().
  27   */
  28  function seochecklist_menu() {
  29    $items['admin/settings/seochecklist'] = array(
  30      'title' => 'SEO Checklist',
  31      'description' => 'Keep track of your Drupal Search Engine Optimization tasks.',
  32      'page callback' => 'drupal_get_form',
  33      'page arguments' => array('seochecklist_admin_settings'),
  34      'access arguments' => array('access seochecklist content'),
  35      'file' => 'seochecklist.admin.inc',
  36    );
  37    return $items;
  38  }
  39  
  40  /**
  41   * Implementation of hook_footer().
  42   */
  43  function seochecklist_footer($main = 0) {
  44    if (variable_get('seo_checklist_link', 0)) {
  45      return '<div align="center"><a href="http://www.volacci.com/" target="_blank">Drupal SEO</a></div>';
  46    }
  47  }
  48  
  49  function seochecklist_get_book_references($tid) {
  50    $references = array(
  51      1 => 59,
  52      39 => 59,
  53      2 => 68,
  54      6 => 83,
  55      5 => 72,
  56      7 => 20,
  57      9 => 23,
  58      10 => 22,
  59      11 => 22,
  60      12 => 23,
  61      13 => 26,
  62      15 => 96,
  63      16 => 182,
  64      17 => 201,
  65      18 => 18,
  66      19 => 148,
  67      21 => 109,
  68      46 => 125,
  69      24 => 118,
  70      40 => 205,
  71      39 => 205,
  72    );
  73  
  74    return isset($references[$tid]) ? $references[$tid] : NULL;
  75  }


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7