From 3bcc48225adf7d92c69accb069bf2604bae7da1b Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 28 Jun 2009 16:05:58 +0000 Subject: #504428 by Sutharsan: Include link to add item on all empty admin listing pages. --- modules/taxonomy/taxonomy.admin.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy') diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index c37e31feb..5a732890f 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -82,8 +82,9 @@ function theme_taxonomy_overview_vocabularies($form) { $rows[] = array('data' => $row, 'class' => 'draggable'); } } + if (empty($rows)) { - $rows[] = array(array('data' => t('No vocabularies available.'), 'colspan' => '5')); + $rows[] = array(array('data' => t('No vocabularies available. Add vocabulary now.', array('@link' => url('admin/content/taxonomy/add'))), 'colspan' => '5')); } $header = array(t('Vocabulary name'), t('Content types')); @@ -450,7 +451,7 @@ function taxonomy_overview_terms(&$form_state, $vocabulary) { $form['#page_entries'] = $page_entries; $form['#back_peddle'] = $back_peddle; $form['#forward_peddle'] = $forward_peddle; - $form['#empty_text'] = t('No terms available.'); + $form['#empty_text'] = t('No terms available. Add term now.', array('@link' => url('admin/build/taxonomy/' . $vocabulary->vid . '/add'))); if (!$vocabulary->tags && $vocabulary->hierarchy < 2 && count($tree) > 1) { $form['submit'] = array( -- cgit v1.2.3