Commit 71ddfecf authored by David Metzler's avatar David Metzler
Browse files

Initial take on requirements.

parent bf3d5738
...@@ -1406,5 +1406,22 @@ function forena_form_reflector($formid, &$form_state, $form) { ...@@ -1406,5 +1406,22 @@ function forena_form_reflector($formid, &$form_state, $form) {
return $form; return $form;
} }
function forena_requirements($phase) {
$requirements = array();
switch ($phase) {
case 'runtime':
$writable = is_writable(Frx::File()->dir);
if (!$writeable) {
$requirements['fornea_writable'] = array(
'title' => 'Report File Location',
'value' => Frx::File()->dir,
'severity' => REQUIREMENT_ERROR,
'description' => t('The directory must be writable by the web user in order to create custom reports. '),
) ;
}
break;
}
return $requirements;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment