function mobile_tools_uninstall in Mobile Tools 5
Same name and namespace in other branches
- 6.3 mobile_tools.install \mobile_tools_uninstall()
- 6 mobile_tools.install \mobile_tools_uninstall()
- 6.2 mobile_tools.install \mobile_tools_uninstall()
- 7.3 mobile_tools.install \mobile_tools_uninstall()
- 7.2 mobile_tools.install \mobile_tools_uninstall()
Implementation of hook_uninstall()
File
- ./
mobile_tools.install, line 34 - Install file for mobile_tools module
Code
function mobile_tools_uninstall() {
$query = "SELECT * FROM {mobile_tools_roles_relations}";
$result = db_query($query);
while ($item = db_fetch_object($result)) {
db_query("DELETE FROM {role} WHERE rid = %d", $item->mrid);
}
db_query("DROP TABLE {mobile_tools_roles_relations}");
}