function google_authorship_uninstall in Google Authorship 7.2
Same name and namespace in other branches
- 7 google_authorship.install \google_authorship_uninstall()
Implements hook_uninstall().
This will delete the Google+ ID field and all its instances from the user bundle when the module is uninstalled.
File
- ./
google_authorship.install, line 78 - Adds field to user entity on enable and removes fields on uninstall. Will not delete fields upon disable.
Code
function google_authorship_uninstall() {
if (field_info_field('field_google_plus_id')) {
field_delete_field('field_google_plus_id');
}
variable_del('google_authorship_use_metatag');
variable_del('google_authorship_use_head');
variable_del('google_authorship_use_user');
variable_del('google_authorship_registration_disp');
variable_del('google_authorship_bundles');
variable_del('google_authorship_disp_for_roles');
}