diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-09 23:18:55 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-09 23:18:55 +0000 |
commit | 720175b3f119f2911149b517000347a1447e5033 (patch) | |
tree | 4973a80ac44694c74d38d5fe03a7bce28f670cd1 /modules/dashboard/dashboard.module | |
parent | d067e447a6819178ff2b0488aae2c08d95dad808 (diff) | |
download | brdo-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.module | 21 |
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])); -} - |