diff --git a/commerce_popular_products.module b/commerce_popular_products.module index 24badafd9660008d64376d0f2b6ff5055c17d112..345d7abab7797d1e421e4cbe6f9bdce519df89c6 100644 --- a/commerce_popular_products.module +++ b/commerce_popular_products.module @@ -219,9 +219,11 @@ function commerce_popular_products_settings_form($form, &$form_state) { ); } else { + $markup = '

' . t('Product types') . '

'; + $markup .= '

' . t('You have not defined any product types. You need to define some first.', array('@add-product-page' => url('/admin/commerce/products/types/add'))) . '

'; $form['product_types'] = array( '#title' => t('Product Types.'), - '#markup' => t('

Product types

You have not defined any product types. You need to define some first.

'), + '#markup' => $markup, ); }