Parent Directory
|
Revision Log
|
Revision Graph
Prevented multiple location fieldsets when location has been enabled for the product node type. Added uninstall function.
| 1 | <?php |
| 2 | // $Id$ |
| 3 | |
| 4 | function ec_location_uninstall() { |
| 5 | $result = db_query('SELECT name FROM {variable}'); |
| 6 | while ($variable = db_fetch_object($result)) { |
| 7 | $name = array_reverse(explode('_', $variable->name)); |
| 8 | if (strpos($variable->name, 'location') == 0 && $name[1] == 'product') { |
| 9 | variable_del($variable->name); |
| 10 | } |
| 11 | } |
| 12 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |