summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Lindsay2012-12-01 20:28:34 (GMT)
committerAnthony Lindsay2012-12-01 20:28:34 (GMT)
commit1d4c3417801e482302d039901d19ebb3b4d105b6 (patch)
tree0486a0d3a4d97d218a741c1fd3146388cb118bb3
parentce3f6afcc75a7c6d089870210623c4654df4235b (diff)
Removed redundant call to t() and fixed a call to variable_get().
-rw-r--r--commerce_popular_products.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/commerce_popular_products.module b/commerce_popular_products.module
index f8887de..fe77580 100644
--- a/commerce_popular_products.module
+++ b/commerce_popular_products.module
@@ -18,7 +18,7 @@ function commerce_popular_products_commerce_checkout_complete($order) {
*/
function commerce_popular_products_get_product() {
// Fetch settings for use.
- $time = variable_get('commerce_popular_products_time', $default = 'month');
+ $time = variable_get('commerce_popular_products_time', 'month');
$products = variable_get('commerce_popular_products_products');
if (isset($products)) {
// Gather information on all the Commerce product reference fields in use.
@@ -134,8 +134,7 @@ function commerce_popular_products_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'popular-product-block':
- $title = variable_get('commerce_popular_products_title');
- $block['subject'] = t('@title', array('@title' => $title));
+ $block['subject'] = variable_get('commerce_popular_products_title');
$block['content'] = commerce_popular_products_get_content();
break;