Index: uc_discounts.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_discounts/uc_discounts.module,v
retrieving revision 1.1.2.3
diff -r1.1.2.3 uc_discounts.module
716c716,722
< function uc_discounts_show_discounts() {
---
> function uc_discounts_show_discounts() {
>   // check status and display an error message if no good
>   $status = uc_discounts_store_status();
>   if (!empty($status)) {
>     return t('One or more problems have been detected with your installation of UC Discounts. Please check the status messages on the <a href="!url">Store administration</a> page.', array('!url' => url('admin/store')));
>   }
> 
1946a1953,1978
> 
> /**
>  * Implementation of hook_store_status().
>  * Check there are discounts and conditions available
>  */
> function uc_discounts_store_status() {
>   $condition_list = _uc_discounts_get_conditions();
>   if (empty($condition_list)) {
>     $statuses[] = array(
>       'status' => 'error',
>       'title' => t('Discounts'),
>       'desc' => t('No discount conditions are available. <a href="!url">Enable</a> some of the discount conditions modules to create discounts.', 
>         array('!url' => url('admin/build/modules'))
>       ),
>     );
>   }
>   $action_list = _uc_discounts_get_actions();
>   if (empty($action_list)) {
>     $statuses[] = array(
>       'status' => 'error',
>       'title' => t('Discounts'),
>       'desc' => t('No discount actions are available. <a href="!url">Enable</a> some of the discount actions modules to create discounts.', array('!url' => url('admin/build/modules'))),
>     );  
>   }
>   return $statuses;
> }
