summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Lindsay2012-09-14 10:15:13 (GMT)
committerAnthony Lindsay2012-09-14 10:15:13 (GMT)
commit51388dad37e3523794149e3ce4b1781f5bc5e7c2 (patch)
tree6e0219f7d610e43996a48720e3332ed76965c867
parent66fa85d59eab0ba9062ae2900547ca30da3d409a (diff)
Changed the no products message to include a link to the add products page. Removed redundant get_products call.
-rw-r--r--commerce_popular_products.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/commerce_popular_products.module b/commerce_popular_products.module
index 84806e2..ee95e0d 100644
--- a/commerce_popular_products.module
+++ b/commerce_popular_products.module
@@ -203,10 +203,10 @@ function commerce_popular_products_settings_form($form, &$form_state) {
else {
$form['product_types'] = array(
'#title' => t('Product Types.'),
- '#markup' => t('<h4>Product types</h4><p>You have not defined any product types. You need to define some first.</p>'),
+ '#markup' => t('<h4>Product types</h4><p>You have not defined any product types. You need to <a href = "/admin/commerce/products/types/add">define some</a> first.</p>'),
);
}
- $product_types = commerce_popular_products_get_product_types();
+
$options = array();
foreach ($product_types as $type) {
$options[$type] = $type;