function ldapdata_uninstall in LDAP integration 6
Same name and namespace in other branches
- 5 ldapdata.install \ldapdata_uninstall()
Implementation of hook_uninstall().
File
- ./
ldapdata.install, line 76 - ldapdata module installation and upgrade code.
Code
function ldapdata_uninstall() {
// We're removing fileds from an existing table, not deleting a whole one.
$ret = array();
if (db_table_exists('ldapauth')) {
db_drop_field($ret, 'ldapauth', 'ldapdata_binddn');
db_drop_field($ret, 'ldapauth', 'ldapdata_bindpw');
db_drop_field($ret, 'ldapauth', 'ldapdata_rwattrs');
db_drop_field($ret, 'ldapauth', 'ldapdata_roattrs');
db_drop_field($ret, 'ldapauth', 'ldapdata_mappings');
db_drop_field($ret, 'ldapauth', 'ldapdata_attrs');
db_drop_field($ret, 'ldapauth', 'ldapdata_filter_php');
}
// Remove variables
variable_del('ldapdata_sync');
variable_del('ldapauth_disable_picture_change');
return $ret;
}