function uc_file_store_status in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_file/uc_file.module \uc_file_store_status()
Implementation of hook_store_status().
File
- uc_file/
uc_file.module, line 255 - Allows products to be associated with downloadable files.
Code
function uc_file_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 feature settings</a> under the file download settings fieldset.', array(
'!url' => url('admin/store/settings/products/edit/features'),
)),
);
}
else {
$message[] = array(
'status' => 'ok',
'title' => t('File Downloads'),
'desc' => t('The file downloads directory has been set and is working.'),
);
}
return $message;
}