$connection->
executeUpdate($sql,
[$id]);
// Remove crontab-entries
$sql = 'DELETE FROM s_crontab WHERE pluginID = ?';
$connection->
executeUpdate($sql,
[$id]);
// Remove form
$this->
removeForm($bootstrap,
$removeData);
// Remove snippets
if ($capabilities['secureUninstall'
]) { $bootstrap->
removeSnippets($removeData);
} else { $bootstrap->
removeSnippets(true
);
} // Remove menu-entries
$sql = 'DELETE FROM s_core_menu WHERE pluginID = ?';
$connection->
executeUpdate($sql,
[$id]);
// Remove templates
$sql = 'DELETE FROM s_core_templates WHERE plugin_id = ?';
$connection->
executeUpdate($sql,
[$id]);