summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-03 00:44:53 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-03 00:44:53 +0000
commitb033a61208b59d4e530b54294477955177ca6ed2 (patch)
treef2cf26746b751703b97eca84ed24fa04001696f4 /modules
parent30a6c37c867a49ba0d1eb87a965f963f106ba558 (diff)
downloadbrdo-b033a61208b59d4e530b54294477955177ca6ed2.tar.gz
brdo-b033a61208b59d4e530b54294477955177ca6ed2.tar.bz2
#648410 follow-up by Dave Reid: Add link to create new from all empty table texts.
Diffstat (limited to 'modules')
-rw-r--r--modules/aggregator/aggregator.admin.inc4
-rw-r--r--modules/node/content_types.inc2
-rw-r--r--modules/path/path.admin.inc2
-rw-r--r--modules/system/system.admin.inc2
-rw-r--r--modules/taxonomy/taxonomy.admin.inc2
5 files changed, 6 insertions, 6 deletions
diff --git a/modules/aggregator/aggregator.admin.inc b/modules/aggregator/aggregator.admin.inc
index 61ef84802..0856bd32b 100644
--- a/modules/aggregator/aggregator.admin.inc
+++ b/modules/aggregator/aggregator.admin.inc
@@ -29,7 +29,7 @@ function aggregator_view() {
foreach ($result as $feed) {
$rows[] = array(l($feed->title, "aggregator/sources/$feed->fid"), format_plural($feed->items, '1 item', '@count items'), ($feed->checked ? t('@time ago', array('@time' => format_interval(REQUEST_TIME - $feed->checked))) : t('never')), ($feed->checked && $feed->refresh ? t('%time left', array('%time' => format_interval($feed->checked + $feed->refresh - REQUEST_TIME))) : t('never')), l(t('edit'), "admin/config/services/aggregator/edit/feed/$feed->fid"), l(t('remove items'), "admin/config/services/aggregator/remove/$feed->fid"), l(t('update items'), "admin/config/services/aggregator/update/$feed->fid"));
}
- $output .= theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No feeds available.')));
+ $output .= theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No feeds available. <a href="@link">Add feed</a>.', array('@link' => url('admin/config/services/aggregator/add/feed')))));
$result = db_query('SELECT c.cid, c.title, COUNT(ci.iid) as items FROM {aggregator_category} c LEFT JOIN {aggregator_category_item} ci ON c.cid = ci.cid GROUP BY c.cid, c.title ORDER BY title');
@@ -40,7 +40,7 @@ function aggregator_view() {
foreach ($result as $category) {
$rows[] = array(l($category->title, "aggregator/categories/$category->cid"), format_plural($category->items, '1 item', '@count items'), l(t('edit'), "admin/config/services/aggregator/edit/category/$category->cid"));
}
- $output .= theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No categories available.')));
+ $output .= theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No categories available. <a href="@link">Add category</a>.', array('@link' => url('admin/config/services/aggregator/add/category')))));
return $output;
}
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index c10eb90c9..24f30f82b 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -48,7 +48,7 @@ function node_overview_types() {
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
- '#empty' => t('No content types available.'),
+ '#empty' => t('No content types available. <a href="@link">Add content type</a>.', array('@link' => url('admin/structure/types/add'))),
);
return $build;
diff --git a/modules/path/path.admin.inc b/modules/path/path.admin.inc
index ba7586cd1..e4f971720 100644
--- a/modules/path/path.admin.inc
+++ b/modules/path/path.admin.inc
@@ -65,7 +65,7 @@ function path_admin_overview($keys = NULL) {
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
- '#empty' => t('No URL aliases available.'),
+ '#empty' => t('No URL aliases available. <a href="@link">Add alias</a>.', array('@link' => url('admin/config/search/path/add'))),
);
$build['path_pager'] = array('#theme' => 'pager');
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 358e9d208..9b24c5b43 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -2744,7 +2744,7 @@ function system_date_time_formats() {
'#theme' => 'table',
'#header' => $header,
'#rows' => $rows,
- '#empty' => ('No custom date formats available.'),
+ '#empty' => t('No custom date formats available. <a href="@link">Add date format</a>.', array('@link' => url('admin/config/regional/date-time/formats/add'))),
);
return $build;
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc
index 0ffead389..cdb02bacc 100644
--- a/modules/taxonomy/taxonomy.admin.inc
+++ b/modules/taxonomy/taxonomy.admin.inc
@@ -85,7 +85,7 @@ function theme_taxonomy_overview_vocabularies($variables) {
drupal_add_tabledrag('taxonomy', 'order', 'sibling', 'vocabulary-weight');
}
$header[] = array('data' => t('Operations'), 'colspan' => '3');
- return theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No vocabularies available.'),'attributes' => array('id' => 'taxonomy'))) . drupal_render_children($form);
+ return theme('table', array('header' => $header, 'rows' => $rows, 'empty' => t('No vocabularies available. <a href="@link">Add vocabulary</a>.', array('@link' => url('admin/structure/taxonomy/add'))), 'attributes' => array('id' => 'taxonomy'))) . drupal_render_children($form);
}
/**