You are here

function metatag_update_7002 in Metatag 7

Uninstall the deprecated metatag_ui module, the UI is now in the main module.

File

./metatag.install, line 895
Install, update, and uninstall functions for the metatag module.

Code

function metatag_update_7002() {
  if (module_exists('metatag_ui')) {
    module_disable(array(
      'metatag_ui',
    ), FALSE);
    drupal_uninstall_modules(array(
      'metatag_ui',
    ), FALSE);
    drupal_set_message(t('The deprecated Metatag UI module has been disabled.'));
  }
}