You are here

function finder_update_7200 in Finder 7.2

Disable Finder 1.x modules.

File

./finder.install, line 193
Finder module install file.

Code

function finder_update_7200() {

  // Upgraders with optionwidgets should have the module disabled.
  if (module_exists('finder_optionwidgets')) {
    drupal_set_message('<em>Finder optionwidgets</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_optionwidgets') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_optionwidgets',
    ), FALSE);
  }

  // Upgraders with autocomplete should have the module disabled.
  if (module_exists('finder_autocomplete')) {
    drupal_set_message('<em>Finder autocomplete</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_autocomplete') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_autocomplete',
    ), FALSE);
  }

  // Upgraders with text should have the module disabled.
  if (module_exists('finder_text')) {
    drupal_set_message('<em>Finder text</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_text') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_text',
    ), FALSE);
  }

  // Upgraders with i18nstrings should have the module disabled.
  if (module_exists('finder_i18nstrings')) {
    drupal_set_message('<em>Finder i18nstrings</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_i18nstrings') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_i18nstrings',
    ), FALSE);
  }

  // Upgraders with search should have the module disabled.
  if (module_exists('finder_search')) {
    drupal_set_message('<em>Finder search</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_search') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_search',
    ), FALSE);
  }

  // Upgraders with node should have the module disabled.
  if (module_exists('finder_node')) {
    drupal_set_message('<em>Finder node</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_node') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_node',
    ), FALSE);
  }

  // Upgraders with user should have the module disabled.
  if (module_exists('finder_user')) {
    drupal_set_message('<em>Finder user</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_user') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_user',
    ), FALSE);
  }

  // Upgraders with views should have the module disabled.
  if (module_exists('finder_views')) {
    drupal_set_message('<em>Finder views</em> is deprecated.  Please delete the ' . drupal_get_path('module', 'finder_views') . ' directory from the Drupal installation.', 'warning');
    module_disable(array(
      'finder_views',
    ), FALSE);
  }
  return 'Disable Finder 1.x modules.';
}