function yashare_uninstall in Yandex.Share 7.2
Same name and namespace in other branches
- 7 yashare.install \yashare_uninstall()
Implements hook_uninstall().
File
- ./
yashare.install, line 10 - Install, update, and uninstall functions for the Yandex.Share module.
Code
function yashare_uninstall() {
variable_del('yashare_type');
variable_del('yashare_border');
variable_del('yashare_linkunderline');
variable_del('yashare_linkicon');
variable_del('yashare_image');
variable_del('yashare_block_title');
variable_del('yashare_block_services');
variable_del('yashare_popup_services');
variable_del('yashare_l10n');
variable_del('yashare_popup_title');
variable_del('yashare_popup_link');
variable_del('yashare_popup_codeforblog');
variable_del('yashare_popup_vdirection');
variable_del('yashare_theme');
variable_del('yashare_init_type');
foreach (entity_get_info() as $entity_name => $entity) {
foreach (array_keys($entity['bundles']) as $bundle) {
$field_bundle_setting = field_bundle_settings($entity_name, $bundle);
if (!empty($field_bundle_setting['extra_fields']['display']['yashare'])) {
unset($field_bundle_setting['extra_fields']['display']['yashare']);
field_bundle_settings($entity_name, $bundle, $field_bundle_setting);
}
}
}
}