Skip to content
Snippets Groups Projects
Commit fa5a870e authored by pancho's avatar pancho Committed by MegaChriz
Browse files

Issue #1804674 by Pancho, travismccauley, MegaChriz: Fixed broken link in...

Issue #1804674 by Pancho, travismccauley, MegaChriz: Fixed broken link in missing feeds plugin message when the feeds_ui module is disabled.
parent f2a1d53e
No related branches found
No related tags found
No related merge requests found
......@@ -1177,8 +1177,13 @@ function feeds_plugin($plugin, $id) {
$args = array('%plugin' => $plugin, '@id' => $id);
if (user_access('administer feeds')) {
$args['@link'] = url('admin/structure/feeds/' . $id);
drupal_set_message(t('Missing Feeds plugin %plugin. See <a href="@link">@id</a>. Check whether all required libraries and modules are installed properly.', $args), 'warning', FALSE);
if (module_exists('feeds_ui')) {
$args['@link'] = url('admin/structure/feeds/' . $id);
drupal_set_message(t('Missing Feeds plugin %plugin. See <a href="@link">@id</a>. Check whether all required libraries and modules are installed properly.', $args), 'warning', FALSE);
}
else {
drupal_set_message(t('Missing Feeds plugin %plugin used by the importer "@id". Check whether all required libraries and modules are installed properly. Enable the Feeds Admin UI module to check the importer\'s settings.', $args), 'warning', FALSE);
}
}
else {
drupal_set_message(t('Missing Feeds plugin %plugin. Please contact your site administrator.', $args), 'warning', FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment