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

Contents of /contributions/modules/htmLawed/htmLawed.install

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


Revision 1.3 - (show annotations) (download) (as text)
Wed May 7 01:13:25 2008 UTC (18 months, 3 weeks ago) by patnaik
Branch: MAIN
CVS Tags: DRUPAL-6--2-6, DRUPAL-6--2-5, DRUPAL-6--2-4, DRUPAL-6--2-3, DRUPAL-6--2-2, DRUPAL-6--2-1, DRUPAL-6--2-0, DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-7--2-3, DRUPAL-7--2-4, HEAD
Branch point for: DRUPAL-6--1, DRUPAL-6--2, DRUPAL-7--2
Changes since 1.2: +1 -1 lines
File MIME type: text/x-php
Corrected mis-placed parenthesis for t()
1 <?php
2 // $Id$
3
4 /*
5 * Delete all htmLawed settings when module is 'uninstalled' (not 'disabled')
6 * Also see htmLawed_cron() and htmLawed_node_type() in htmLawed.module
7 */
8 function htmLawed_uninstall() {
9 $setting_rows = db_query("SELECT name AS name FROM {variable} WHERE name LIKE 'htmLawed_format_%'");
10 while($row = db_fetch_object($setting_rows)) {
11 $format = substr($row->name, 16);
12 variable_del('htmLawed_format_'. $format);
13 drupal_set_message(t('Variable <em>htmLawed_format_!format</em> storing format-specific htmLawed settings was deleted from the database.', array('!format' => $format)));
14 }
15 }

  ViewVC Help
Powered by ViewVC 1.1.2