/[drupal]/contributions/modules/coder_tough_love/coder_tough_love.install
ViewVC logotype

Diff of /contributions/modules/coder_tough_love/coder_tough_love.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Thu Nov 20 15:35:44 2008 UTC revision 1.1.2.1, Thu Nov 20 15:35:44 2008 UTC
# Line 0  Line 1 
1    <?php
2    // $Id: game.install,v 1.3.2.4 2008/11/19 00:11:06 morbus Exp $
3    
4    /**
5     * @file
6     * Installation routines for Coder Tough Love.
7     *
8    
9    /**
10     * Implementation of hook_requirements().
11     */
12    function coder_tough_love_requirements($phase) {
13      $t = get_t();
14      $requirements = array();
15    
16      if ($phase == 'runtime') {
17        if (!function_exists('pspell_news')) {
18          $requirements['coder_tough_love_pspell'] = array(
19            'title' => $t('Pspell library'),
20            'value' => $t('The Pspell library for PHP is missing. Please check the <a href="@url">PHP documentation</a> for information on how to correct this if you\'d like Coder Tough Love to spell check.', array('@url' => 'http://www.php.net/manual/en/book.pspell.php')),
21            'severity' => REQUIREMENT_WARNING,
22          );
23        }
24      }
25    
26      return $requirements;
27    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2