diff --git a/feeds.module b/feeds.module index 5fc678c..296dfe1 100644 --- a/feeds.module +++ b/feeds.module @@ -763,9 +763,13 @@ function feeds_system_info_alter(array &$info, $file, $type) { // Check if any importers are using any plugins from the current module. foreach (feeds_importer_load_all(TRUE) as $importer) { if ($importer->export_type == EXPORT_IN_CODE) { - // Skip importers that are defined in code. This ensures that modules - // that define both an importer and a plugin can still be disabled. - continue; + $configs = ctools_export_load_object('feeds_importer', 'names', array($importer->id)); + if (isset($configs[$importer->id]) && $configs[$importer->id]->export_module == $file->name) { + // Skip importers that are defined in code and that are provided + // by the current module. This ensures that modules that define both + // an importer and a plugin can still be disabled. + continue; + } } $configuration = $importer->getConfig(); @@ -784,10 +788,10 @@ function feeds_system_info_alter(array &$info, $file, $type) { } if (module_exists('feeds_ui') && user_access('administer feeds')) { - $info['explanation'] = t('Feeds is currently using this module for one or more importers.', array('@link' => url('admin/structure/feeds'))); + $info['explanation'] = t('Feeds is currently using this module for one or more importers', array('@link' => url('admin/structure/feeds'))); } else { - $info['explanation'] = t('Feeds is currently using this module for one or more importers.'); + $info['explanation'] = t('Feeds is currently using this module for one or more importers'); } }