You are here

function stringoverrides_enable in String Overrides 5

Check that locale module is disabled before enabling this module.

File

./stringoverrides.module, line 92
Configuration interface to provide a quick and easy way of replacing text.

Code

function stringoverrides_enable() {
  if (module_exists('locale')) {
    drupal_set_message(t('String overrides module is not compatible with Locale module. Please disable it before using String overrides.'), 'error');
    module_disable(array(
      'stringoverrides',
    ));
  }
}