You are here

function uc_file_uc_store_status in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_file/uc_file.module \uc_file_uc_store_status()

Implements hook_uc_store_status().

File

uc_file/uc_file.module, line 509
Allows products to be associated with downloadable files.

Code

function uc_file_uc_store_status() {
  $message = array();
  if (!is_dir(variable_get('uc_file_base_dir', NULL))) {
    $message[] = array(
      'status' => 'warning',
      'title' => t('File downloads'),
      'desc' => t('The file downloads directory is not valid or set. Set a valid directory in the <a href="!url">product settings</a> under the file download settings tab.', array(
        '!url' => url('admin/store/settings/products'),
      )),
    );
  }
  else {
    $message[] = array(
      'status' => 'ok',
      'title' => t('File downloads'),
      'desc' => t('The file downloads directory has been set and is working.'),
    );
  }
  return $message;
}