summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-28 16:05:58 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-28 16:05:58 +0000
commit3bcc48225adf7d92c69accb069bf2604bae7da1b (patch)
tree9b8927350a787f4d2115fec87fa2fcd68a22be8c /modules/taxonomy
parent08b1bb73f770888b39ac862495622629af65de97 (diff)
downloadbrdo-3bcc48225adf7d92c69accb069bf2604bae7da1b.tar.gz
brdo-3bcc48225adf7d92c69accb069bf2604bae7da1b.tar.bz2
#504428 by Sutharsan: Include link to add item on all empty admin listing pages.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.admin.inc5
1 files changed, 3 insertions, 2 deletions
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. <a href="@link">Add vocabulary</a> 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. <a href="@link">Add term</a> now.', array('@link' => url('admin/build/taxonomy/' . $vocabulary->vid . '/add')));
if (!$vocabulary->tags && $vocabulary->hierarchy < 2 && count($tree) > 1) {
$form['submit'] = array(