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

Contents of /contributions/modules/customerror/customerror.install

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


Revision 1.3 - (show annotations) (download) (as text)
Sat Sep 13 02:58:10 2008 UTC (14 months, 2 weeks ago) by kbahey
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +7 -1 lines
File MIME type: text/x-php
Things work much better when you make them code ...
1 <?php
2 // $Id: customerror.install,v 1.1.2.3 2008/09/13 02:56:57 kbahey Exp $
3
4 function customerror_uninstall() {
5 db_query("DELETE FROM {variable} WHERE name LIKE 'customerror_%'");
6
7 foreach(_customerror_enum_errors() as $code => $desc) {
8 if (variable_get('site_' . $code, '') == 'customerror/' . $code) {
9 variable_del('site_' . $code, '');
10 }
11 }
12 }

  ViewVC Help
Powered by ViewVC 1.1.2