You are here

function google_authorship_uninstall in Google Authorship 7

Same name and namespace in other branches
  1. 7.2 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');
  }
}