/[drupal]/contributions/modules/autotagging/autotagging.module
ViewVC logotype

Diff of /contributions/modules/autotagging/autotagging.module

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

revision 1.6, Wed Jul 22 18:24:07 2009 UTC revision 1.7, Fri Jul 24 17:38:20 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: autotagging.module,v 1.5 2009/07/13 17:25:01 acstewart Exp $  // $Id: autotagging.module,v 1.6 2009/07/22 18:24:07 acstewart Exp $
3  /*  /*
4   * @file autotagging.module   * @file autotagging.module
5   * Module for base Autotagging API.   * Module for base Autotagging API.
# Line 80  function autotagging_nodeapi(&$node, $op Line 80  function autotagging_nodeapi(&$node, $op
80        break;        break;
81    }    }
82  }  }
83    
84    function autotagging_requirements($phase) {
85      switch ($phase) {
86        case 'install':
87          $t = get_t();
88          $requirements['php'] = array(
89            'title' => $t('PHP'),
90            'value' => ($phase == 'runtime') ? l(phpversion(), 'admin/logs/status/php') : phpversion(),
91          );
92          if (version_compare(phpversion(), 5) < 0) {
93            $requirements['php']['description'] = $t('Your PHP installation is too old. Autotagging requires at least PHP %version.', array('%version' => 5));
94            $requirements['php']['severity'] = REQUIREMENT_ERROR;
95          }
96          return $requirements;
97          break;
98      }
99    }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2