function mobile_codes_uninstall in Mobile Codes 6
Same name and namespace in other branches
- 5 mobile_codes.install \mobile_codes_uninstall()
- 6.2 mobile_codes.install \mobile_codes_uninstall()
- 7.2 mobile_codes.install \mobile_codes_uninstall()
File
- ./
mobile_codes.install, line 40
Code
function mobile_codes_uninstall() {
module_load_include('admin.inc', 'mobile_codes');
drupal_uninstall_schema('mobile_codes');
$dir = realpath(file_directory_path() . '/mobile_codes');
if (is_dir($dir)) {
_mobile_codes_recursive_delete($dir);
}
variable_del('mobile_codes_flush');
}