summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhass2010-10-09 14:39:38 (GMT)
committer hass2010-10-09 14:39:38 (GMT)
commit5e0d2997ba89b80f705509a085b8af009c06e4d7 (patch)
tree9baa7446f1e79a6c58e4d0a54480ba86f93d6844
parent2bb12b3b274ba119a4d662384f70fba7568615c7 (diff)
Use $t() for t() in hook_requirements()
-rw-r--r--googleanalytics.install7
1 files changed, 4 insertions, 3 deletions
diff --git a/googleanalytics.install b/googleanalytics.install
index 5dbe518..3221754 100644
--- a/googleanalytics.install
+++ b/googleanalytics.install
@@ -67,15 +67,16 @@ function googleanalytics_disable() {
*/
function googleanalytics_requirements($phase) {
$requirements = array();
+ $t = get_t();
if ($phase == 'runtime') {
// Raise warning if Google user account has not been set yet.
if (!preg_match('/^UA-\d{4,}-\d+$/', variable_get('googleanalytics_account', 'UA-'))) {
$requirements['googleanalytics'] = array(
- 'title' => t('Google Analytics module'),
- 'description' => t('Google Analytics module has not been configured yet. Please configure its settings from the <a href="@url">Google Analytics settings page</a>.', array('@url' => url('admin/config/system/googleanalytics'))),
+ 'title' => $t('Google Analytics module'),
+ 'description' => $t('Google Analytics module has not been configured yet. Please configure its settings from the <a href="@url">Google Analytics settings page</a>.', array('@url' => url('admin/config/system/googleanalytics'))),
'severity' => REQUIREMENT_ERROR,
- 'value' => t('Not configured'),
+ 'value' => $t('Not configured'),
);
}
}