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

Diff of /contributions/modules/globalredirect/globalredirect.install

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

revision 1.1.2.2, Wed Jul 30 15:00:51 2008 UTC revision 1.1.2.3, Mon Dec 22 11:22:22 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: globalredirect.install,v 1.1.2.1 2008/07/08 11:09:18 njt1982 Exp $  // $Id: globalredirect.install,v 1.1.2.2 2008/07/30 15:00:51 njt1982 Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 17  function globalredirect_install() { Line 17  function globalredirect_install() {
17    
18    
19  /**  /**
20     * Implementation of hook_uninstall().
21     * Removes instances of variable settings
22     */
23    function globalredirect_uninstall() {
24      variable_del('globalredirect_deslash');
25      variable_del('globalredirect_trailingzero');
26      variable_del('globalredirect_nonclean2clean');
27    }
28    
29    
30    /**
31   *  This update changes Global Redirect to run as the last hook - this is important to make sure all other modules have had their say first.   *  This update changes Global Redirect to run as the last hook - this is important to make sure all other modules have had their say first.
32   */   */
33  function globalredirect_update_1() {  function globalredirect_update_1() {
# Line 26  function globalredirect_update_1() { Line 37  function globalredirect_update_1() {
37    
38    return $ret;    return $ret;
39  }  }
40    
41    
42    /**
43     * Update to fix the silly deslash typo mistake
44     */
45    function globalredirect_update_5100() {
46      $deslash = variable_get('globalredirect_deslah', NULL);
47      $ret = array();
48    
49      if (is_null($deslash)) {
50        $ret[] = array('success' => TRUE, 'query' => 'There was no "deslah" option to fix... Nothing to do. Issue #348120 does not apply.');
51      }
52      else {
53        variable_set('globalredirect_deslash', $deslash);
54        variable_del('globalredirect_deslah');
55    
56        $ret[] = array('success' => TRUE, 'query' => 'Issue #348120 applies. Copied setting over to correct name. Your deslash settings should work now.');
57      }
58    
59      return $ret;
60    }
61    

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2