diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-07-13 12:07:08 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-07-13 12:07:08 -0400 |
commit | a7fbbbfd71267f783fd8244712f7763146f3b3e2 (patch) | |
tree | a18d67363b737f243286ec8dda7aef1506800edc /shared | |
parent | Made bundling finished images separate from modules in backend; added metadat... (diff) | |
download | ingenue-a7fbbbfd71267f783fd8244712f7763146f3b3e2.tar.gz ingenue-a7fbbbfd71267f783fd8244712f7763146f3b3e2.tar.bz2 ingenue-a7fbbbfd71267f783fd8244712f7763146f3b3e2.zip |
Added data verification to config wizard API
Diffstat (limited to 'shared')
-rw-r--r-- | shared/classes/1conf_build_common.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/classes/1conf_build_common.php b/shared/classes/1conf_build_common.php index 4e74d09..aae1e42 100644 --- a/shared/classes/1conf_build_common.php +++ b/shared/classes/1conf_build_common.php @@ -88,5 +88,13 @@ abstract class conf_build_common extends sql_row_obj { $this->opt_cache[$name]->write(); } } + // Deletes the given option if it exists + public function delete_opt($name) { + $opts=$this->get_opts(true); + if (isset($opts[$name])) { + $opts[$name]->delete(); + } + unset($opts[$name]); + } } ?> |