summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Lindsay2012-11-10 11:45:42 (GMT)
committerAnthony Lindsay2012-11-10 11:45:42 (GMT)
commitc5e5167eb0d32c1a9ad6affa945d92c512e8d4db (patch)
treee051a782224dacb31153607d2c492b87ea717d11
parentd85db53a0735995c150cd93b0828913422e0ffbd (diff)
Fixed coding style errors.
-rw-r--r--commerce_popular_products.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/commerce_popular_products.module b/commerce_popular_products.module
index fd5c946..f8887de 100644
--- a/commerce_popular_products.module
+++ b/commerce_popular_products.module
@@ -6,7 +6,7 @@
*/
/**
- * Implements hook_commerce_checkout_complete()
+ * Implements hook_commerce_checkout_complete().
*/
function commerce_popular_products_commerce_checkout_complete($order) {
// Update our cache of popular products.
@@ -150,9 +150,9 @@ function commerce_popular_products_get_content() {
$output = '';
$number = variable_get('commerce_popular_products_number', $default = '1');
$all_results = variable_get('commerce_popular_products_popular_products');
- if ($all_results == null) {
+ if ($all_results == NULL) {
$all_results = commerce_popular_products_get_product();
- }
+ }
$i = 0;
$view_count = 0;
while ($i < $number) {
@@ -191,7 +191,7 @@ function commerce_popular_products_menu() {
function commerce_popular_products_settings() {
$output = t('<p>Here you can define which product types are ranked for popularity & the period over which they are ranked.</p>');
$form = drupal_get_form('commerce_popular_products_settings_form');
- $output .= render(&$form);
+ $output .= render($form);
return $output;
}