summaryrefslogtreecommitdiff
path: root/modules/dashboard/dashboard.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 23:18:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 23:18:55 +0000
commit720175b3f119f2911149b517000347a1447e5033 (patch)
tree4973a80ac44694c74d38d5fe03a7bce28f670cd1 /modules/dashboard/dashboard.module
parentd067e447a6819178ff2b0488aae2c08d95dad808 (diff)
downloadbrdo-720175b3f119f2911149b517000347a1447e5033.tar.gz
brdo-720175b3f119f2911149b517000347a1447e5033.tar.bz2
#678102 by Magnity and jhodgdon: Remove weird pseudo-t() thing in Dashboard module.
Diffstat (limited to 'modules/dashboard/dashboard.module')
-rw-r--r--modules/dashboard/dashboard.module21
1 files changed, 3 insertions, 18 deletions
diff --git a/modules/dashboard/dashboard.module b/modules/dashboard/dashboard.module
index c251b5c69..301cb6c1b 100644
--- a/modules/dashboard/dashboard.module
+++ b/modules/dashboard/dashboard.module
@@ -204,9 +204,9 @@ function dashboard_admin($launch_customize = FALSE) {
'formToken' => drupal_get_token('dashboard-update'),
'launchCustomize' => $launch_customize,
'dashboard' => url('admin/dashboard'),
- 'emptyBlockText' => _dashboard_get_default_string('dashboard_empty_block_text'),
- 'emptyRegionTextInactive' => _dashboard_get_default_string('dashboard_empty_region_text_inactive'),
- 'emptyRegionTextActive' => _dashboard_get_default_string('dashboard_empty_region_text_active'),
+ 'emptyBlockText' => t('(empty)'),
+ 'emptyRegionTextInactive' => t('This dashboard region is empty. Click <em>Customize</em> to add blocks to it.'),
+ 'emptyRegionTextActive' => t('DRAG HERE'),
),
);
$build = array(
@@ -468,18 +468,3 @@ function theme_dashboard_disabled_block($variables) {
return $output;
}
-/**
- * Central storage for strings.
- *
- * @param <type> $key
- * @return string
- */
-function _dashboard_get_default_string($key) {
- $defaults = array(
- 'dashboard_empty_region_text_inactive' => 'This dashboard region is empty. Click <em>Customize</em> to add blocks to it.',
- 'dashboard_empty_block_text' => '(empty)',
- 'dashboard_empty_region_text_active' => 'DRAG HERE',
- );
- return t(variable_get($key, $defaults[$key]));
-}
-