Skip to content

Commit

Permalink
Issue #52: add link to importer form
Browse files Browse the repository at this point in the history

* disable link if importer is disabled
  • Loading branch information
herbdool authored Jul 22, 2020
1 parent 1eeecf7 commit 76a46e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions feeds_ui/feeds_ui.admin.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function feeds_ui_overview_form($form, &$form_status) {
$form['#header'] = array(
t('Name'),
t('Description'),
t('Attached to'),
t('Form'),
t('Status'),
t('Operations'),
t('Enabled'),
Expand All @@ -66,7 +66,11 @@ function feeds_ui_overview_form($form, &$form_status) {
$importer_form['name']['#markup'] = check_plain($importer->config['name']);
$importer_form['description']['#markup'] = check_plain($importer->config['description']);
if (empty($importer->config['content_type'])) {
$importer_form['attached']['#markup'] = '[none]';
if (!$importer->disabled) {
$importer_form['attached']['#markup'] = l(check_plain($importer->config['name']), 'import/' . check_plain($importer->id));
} else {
$importer_form['attached']['#markup'] = check_plain($importer->config['name']);
}
}
else {
if (!$importer->disabled) {
Expand Down

0 comments on commit 76a46e1

Please sign in to comment.