Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
71ddfecf
Commit
71ddfecf
authored
Feb 12, 2014
by
David Metzler
Browse files
Initial take on requirements.
parent
bf3d5738
Changes
1
Hide whitespace changes
Inline
Side-by-side
forena.module
View file @
71ddfecf
...
...
@@ -1406,5 +1406,22 @@ function forena_form_reflector($formid, &$form_state, $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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment