18 Apr
2009
18 Apr
'09
4:27 p.m.
Eric Schaefer schrieb:
2009/4/18 Earnie Boyd <earnie@users.sourceforge.net>:
db_query(DELETE FROM {variable} WHERE name LIKE '%s_%%', 'scheduler');
I guess thats your way of saying "No nice and easy way" (as in "Drupal has save and portable built-in functions for it"). ;-)
http://api.drupal.org/api/function/variable_del/6 <code> <?php function remove_all_variables($namespace) { foreach ($conf as $name => $value) { if (strpos($name, $namespace) === 0) { // Variable starts with given namespace. Delete it. variable_del($name); } } } ?> </code> Nice enough? ;-) hth, Stefan