@@ 149-162 (lines=14) @@ | ||
146 | /** |
|
147 | * {@inheritdoc} |
|
148 | */ |
|
149 | public function uninstall($module_id, $db) |
|
150 | { |
|
151 | $del_config = array( |
|
152 | 'board3_attachments_number_' . $module_id, |
|
153 | 'board3_attach_max_length_' . $module_id, |
|
154 | 'board3_attachments_forum_ids_' . $module_id, |
|
155 | 'board3_attachments_forum_exclude_' . $module_id, |
|
156 | 'board3_attachments_filetype_' . $module_id, |
|
157 | 'board3_attachments_exclude_' . $module_id, |
|
158 | ); |
|
159 | $sql = 'DELETE FROM ' . CONFIG_TABLE . ' |
|
160 | WHERE ' . $db->sql_in_set('config_name', $del_config); |
|
161 | return $db->sql_query($sql); |
|
162 | } |
|
163 | ||
164 | /** |
|
165 | * Create select box for attachment filetype |
@@ 153-165 (lines=13) @@ | ||
150 | /** |
|
151 | * {@inheritdoc} |
|
152 | */ |
|
153 | public function uninstall($module_id, $db) |
|
154 | { |
|
155 | $del_config = array( |
|
156 | 'board3_poll_allow_vote_' . $module_id, |
|
157 | 'board3_poll_topic_id_' . $module_id, |
|
158 | 'board3_poll_exclude_id_' . $module_id, |
|
159 | 'board3_poll_hide_' . $module_id, |
|
160 | 'board3_poll_limit_' . $module_id, |
|
161 | ); |
|
162 | $sql = 'DELETE FROM ' . CONFIG_TABLE . ' |
|
163 | WHERE ' . $db->sql_in_set('config_name', $del_config); |
|
164 | return $db->sql_query($sql); |
|
165 | } |
|
166 | ||
167 | /** |
|
168 | * Parse template variables for module |